From 8cfe61eba8cdb0d8a35bcfee9843020eba1336eb Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Tue, 16 Apr 2024 19:30:31 +0800 Subject: [PATCH] Set up changelog pages --- src/_includes/main/changelog.njk | 75 +++++++++++++++++++++++++ src/changelog/2022/2022.11tydata.json | 4 ++ src/changelog/2023/2023.11tydata.json | 4 ++ src/changelog/2024/2024.11tydata.json | 4 ++ src/changelog/pages/2022.njk | 19 +++++++ src/changelog/pages/pages.11tydata.json | 5 ++ src/pages/changelog.njk | 17 ++++++ 7 files changed, 128 insertions(+) create mode 100644 src/_includes/main/changelog.njk create mode 100644 src/changelog/2022/2022.11tydata.json create mode 100644 src/changelog/2023/2023.11tydata.json create mode 100644 src/changelog/2024/2024.11tydata.json create mode 100644 src/changelog/pages/2022.njk create mode 100644 src/changelog/pages/pages.11tydata.json create mode 100644 src/pages/changelog.njk diff --git a/src/_includes/main/changelog.njk b/src/_includes/main/changelog.njk new file mode 100644 index 00000000..61ec3f13 --- /dev/null +++ b/src/_includes/main/changelog.njk @@ -0,0 +1,75 @@ +--- +layout: main/content +--- + +{% set currentUrl %}{{ page.url }}{% endset %} + + + +

To get notified of the updates on this website, you can subscribe to the Leilukin's Hub RSS feed, which contains new articles, blog posts and website changelog, or follow my Neocities profile.

+
+ + RSS feed button + +
+ +{{ content | safe }} + + \ No newline at end of file diff --git a/src/changelog/2022/2022.11tydata.json b/src/changelog/2022/2022.11tydata.json new file mode 100644 index 00000000..c5561875 --- /dev/null +++ b/src/changelog/2022/2022.11tydata.json @@ -0,0 +1,4 @@ +{ + "tags": "changelog 2022", + "permalink": false +} \ No newline at end of file diff --git a/src/changelog/2023/2023.11tydata.json b/src/changelog/2023/2023.11tydata.json new file mode 100644 index 00000000..fa985fad --- /dev/null +++ b/src/changelog/2023/2023.11tydata.json @@ -0,0 +1,4 @@ +{ + "tags": "changelog 2023", + "permalink": false +} \ No newline at end of file diff --git a/src/changelog/2024/2024.11tydata.json b/src/changelog/2024/2024.11tydata.json new file mode 100644 index 00000000..15507e72 --- /dev/null +++ b/src/changelog/2024/2024.11tydata.json @@ -0,0 +1,4 @@ +{ + "tags": "changelog 2024", + "permalink": false +} \ No newline at end of file diff --git a/src/changelog/pages/2022.njk b/src/changelog/pages/2022.njk new file mode 100644 index 00000000..cb6611c8 --- /dev/null +++ b/src/changelog/pages/2022.njk @@ -0,0 +1,19 @@ +--- +layout: main/changelog +title: "Website Changelog Archive: 2022" +desc: Changelog of my website during the year of 2022. +changelogNav: 2022 +metadata: + type: article +date: 2022-01-02 +--- + +
+ {% for log in collections["changelog 2022"] | reverse %} +
+

{{ log.data.title }}

+ +
+ {{ log.templateContent | safe }} + {%- endfor %} +
diff --git a/src/changelog/pages/pages.11tydata.json b/src/changelog/pages/pages.11tydata.json new file mode 100644 index 00000000..9d3d3f83 --- /dev/null +++ b/src/changelog/pages/pages.11tydata.json @@ -0,0 +1,5 @@ +{ + "tags": "changelog pages", + "layout": "main/changelog", + "permalink": "/changelog/{{ page.fileSlug }}/" +} \ No newline at end of file diff --git a/src/pages/changelog.njk b/src/pages/changelog.njk new file mode 100644 index 00000000..d04c45b4 --- /dev/null +++ b/src/pages/changelog.njk @@ -0,0 +1,17 @@ +--- +layout: main/changelog +title: Changelog +pageTitle: Website Changelog +desc: Changelog of my website. +metadata: + type: article +date: 2023-01-09 +--- + +

Latest Changelog:

+
+ {% for log in collections["changelog 2024"] | reverse %} +

{{ log.data.title }}

+ {{ log.templateContent | safe }} + {%- endfor %} +