From 0a926755aacbe456fd9e51eb36d2ce2da622e9c7 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:12:11 +0800 Subject: [PATCH] Convert directory data files from JSON to JS --- src/blog/blog.11tydata.js | 3 +++ src/blog/blog.11tydata.json | 3 --- src/blog/posts/posts.11tydata.js | 11 +++++++++++ src/blog/posts/posts.11tydata.json | 12 ------------ src/projects/projects.11tydata.js | 10 ++++++++++ src/projects/projects.11tydata.json | 10 ---------- src/slashes/headerlinks/headerlinks.11tydata.js | 3 +++ src/slashes/headerlinks/headerlinks.11tydata.json | 3 --- src/slashes/slashes.11tydata.js | 5 +++++ src/slashes/slashes.11tydata.json | 5 ----- src/slashes/statements/statements.11tydata.js | 7 +++++++ src/slashes/statements/statements.11tydata.json | 7 ------- 12 files changed, 39 insertions(+), 40 deletions(-) create mode 100644 src/blog/blog.11tydata.js delete mode 100644 src/blog/blog.11tydata.json create mode 100644 src/blog/posts/posts.11tydata.js delete mode 100644 src/blog/posts/posts.11tydata.json create mode 100644 src/projects/projects.11tydata.js delete mode 100644 src/projects/projects.11tydata.json create mode 100644 src/slashes/headerlinks/headerlinks.11tydata.js delete mode 100644 src/slashes/headerlinks/headerlinks.11tydata.json create mode 100644 src/slashes/slashes.11tydata.js delete mode 100644 src/slashes/slashes.11tydata.json create mode 100644 src/slashes/statements/statements.11tydata.js delete mode 100644 src/slashes/statements/statements.11tydata.json diff --git a/src/blog/blog.11tydata.js b/src/blog/blog.11tydata.js new file mode 100644 index 00000000..8d762a9d --- /dev/null +++ b/src/blog/blog.11tydata.js @@ -0,0 +1,3 @@ +export default { + tags: "blog pages" +} \ No newline at end of file diff --git a/src/blog/blog.11tydata.json b/src/blog/blog.11tydata.json deleted file mode 100644 index c74e3b6c..00000000 --- a/src/blog/blog.11tydata.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "tags": "blog pages" -} \ No newline at end of file diff --git a/src/blog/posts/posts.11tydata.js b/src/blog/posts/posts.11tydata.js new file mode 100644 index 00000000..098acb99 --- /dev/null +++ b/src/blog/posts/posts.11tydata.js @@ -0,0 +1,11 @@ +export default { + layout: "global/content", + tags: "posts", + isArticle: true, + eleventyComputed: { + eleventyNavigation: { + key: "{{ title }}", + parent: "Blog Posts" + } + } +} \ No newline at end of file diff --git a/src/blog/posts/posts.11tydata.json b/src/blog/posts/posts.11tydata.json deleted file mode 100644 index ad4c1d7d..00000000 --- a/src/blog/posts/posts.11tydata.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "layout": "global/content", - "tags": "posts", - "isArticle": true, - "eleventyComputed": { - "eleventyNavigation": { - "key": "{{ title }}", - "parent": "Blog Posts" - } - } - -} \ No newline at end of file diff --git a/src/projects/projects.11tydata.js b/src/projects/projects.11tydata.js new file mode 100644 index 00000000..0352e2b2 --- /dev/null +++ b/src/projects/projects.11tydata.js @@ -0,0 +1,10 @@ +export default { + layout: "main/project", + tags: "projects", + eleventyComputed: { + eleventyNavigation: { + key: "{{ title }}", + parent: "Projects" + } + } +} \ No newline at end of file diff --git a/src/projects/projects.11tydata.json b/src/projects/projects.11tydata.json deleted file mode 100644 index d0db9b14..00000000 --- a/src/projects/projects.11tydata.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "layout": "main/project.njk", - "tags": "projects", - "eleventyComputed": { - "eleventyNavigation": { - "key": "{{ title }}", - "parent": "Projects" - } - } -} \ No newline at end of file diff --git a/src/slashes/headerlinks/headerlinks.11tydata.js b/src/slashes/headerlinks/headerlinks.11tydata.js new file mode 100644 index 00000000..588b69f7 --- /dev/null +++ b/src/slashes/headerlinks/headerlinks.11tydata.js @@ -0,0 +1,3 @@ +export default { + tags: "header links" +} \ No newline at end of file diff --git a/src/slashes/headerlinks/headerlinks.11tydata.json b/src/slashes/headerlinks/headerlinks.11tydata.json deleted file mode 100644 index 250fe061..00000000 --- a/src/slashes/headerlinks/headerlinks.11tydata.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "tags": "header links" -} \ No newline at end of file diff --git a/src/slashes/slashes.11tydata.js b/src/slashes/slashes.11tydata.js new file mode 100644 index 00000000..767009b1 --- /dev/null +++ b/src/slashes/slashes.11tydata.js @@ -0,0 +1,5 @@ +export default { + tags: "pages", + layout: "global/content", + permalink: "/{{ page.fileSlug }}/" +} \ No newline at end of file diff --git a/src/slashes/slashes.11tydata.json b/src/slashes/slashes.11tydata.json deleted file mode 100644 index 96e54102..00000000 --- a/src/slashes/slashes.11tydata.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "tags": "pages", - "layout": "global/content", - "permalink": "/{{ page.fileSlug }}/" -} \ No newline at end of file diff --git a/src/slashes/statements/statements.11tydata.js b/src/slashes/statements/statements.11tydata.js new file mode 100644 index 00000000..971ed7bf --- /dev/null +++ b/src/slashes/statements/statements.11tydata.js @@ -0,0 +1,7 @@ +export default { + layout: "global/statement", + tags: "statements", + eleventyComputed: { + desc: "{{ sitemeta.siteAuthor.name }}'s {{ keyword }}." + } +} \ No newline at end of file diff --git a/src/slashes/statements/statements.11tydata.json b/src/slashes/statements/statements.11tydata.json deleted file mode 100644 index 33da9c54..00000000 --- a/src/slashes/statements/statements.11tydata.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "layout": "global/statement", - "tags": "statements", - "eleventyComputed": { - "desc": "{{ sitemeta.siteAuthor.name }}'s {{ keyword }}." - } -} \ No newline at end of file