Skip to content

Commit

Permalink
Convert directory data files from JSON to JS
Browse files Browse the repository at this point in the history
  • Loading branch information
helenclx committed Oct 3, 2024
1 parent d89e350 commit 0a92675
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 40 deletions.
3 changes: 3 additions & 0 deletions src/blog/blog.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
tags: "blog pages"
}
3 changes: 0 additions & 3 deletions src/blog/blog.11tydata.json

This file was deleted.

11 changes: 11 additions & 0 deletions src/blog/posts/posts.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export default {
layout: "global/content",
tags: "posts",
isArticle: true,
eleventyComputed: {
eleventyNavigation: {
key: "{{ title }}",
parent: "Blog Posts"
}
}
}
12 changes: 0 additions & 12 deletions src/blog/posts/posts.11tydata.json

This file was deleted.

10 changes: 10 additions & 0 deletions src/projects/projects.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
layout: "main/project",
tags: "projects",
eleventyComputed: {
eleventyNavigation: {
key: "{{ title }}",
parent: "Projects"
}
}
}
10 changes: 0 additions & 10 deletions src/projects/projects.11tydata.json

This file was deleted.

3 changes: 3 additions & 0 deletions src/slashes/headerlinks/headerlinks.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
tags: "header links"
}
3 changes: 0 additions & 3 deletions src/slashes/headerlinks/headerlinks.11tydata.json

This file was deleted.

5 changes: 5 additions & 0 deletions src/slashes/slashes.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
tags: "pages",
layout: "global/content",
permalink: "/{{ page.fileSlug }}/"
}
5 changes: 0 additions & 5 deletions src/slashes/slashes.11tydata.json

This file was deleted.

7 changes: 7 additions & 0 deletions src/slashes/statements/statements.11tydata.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export default {
layout: "global/statement",
tags: "statements",
eleventyComputed: {
desc: "{{ sitemeta.siteAuthor.name }}'s {{ keyword }}."
}
}
7 changes: 0 additions & 7 deletions src/slashes/statements/statements.11tydata.json

This file was deleted.

0 comments on commit 0a92675

Please sign in to comment.