diff --git a/_site/feed.xml b/_site/feed.xml index ee89db00..f7f0873e 100644 --- a/_site/feed.xml +++ b/_site/feed.xml @@ -4,7 +4,7 @@ Leilukin's personal website. - 2024-05-10T00:16:30Z + 2024-05-10T02:32:54Z https://leilukin.neocities.org Leilukin diff --git a/eleventy.config.js b/eleventy.config.js index a9b11ca8..445286f8 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -46,7 +46,7 @@ module.exports = function (eleventyConfig) { day: 'numeric', }; const dateTimeLocale = new Intl.DateTimeFormat("en-GB", dateOptions); - eleventyConfig.addFilter("niceDate", function(date) { + eleventyConfig.addFilter("formatDate", function(date) { return dateTimeLocale.format(date); }); diff --git a/src/_includes/global/content.njk b/src/_includes/global/content.njk index 1f033eb1..40077d93 100644 --- a/src/_includes/global/content.njk +++ b/src/_includes/global/content.njk @@ -13,9 +13,9 @@ {% if isArticle %}

{{ articleTitle }}

-

Posted on {{ date | niceDate }} by {{ sitemeta.siteAuthor.name }} +

Posted on {{ date | formatDate }} by {{ sitemeta.siteAuthor.name }} {% if updated %} - • Last updated on {{ updated | niceDate }}

+ • Last updated on {{ updated | formatDate }}

{% endif %} {% if categories %}

Categories: diff --git a/src/_includes/main/archive.njk b/src/_includes/main/archive.njk index 62478a0f..f660e0e5 100644 --- a/src/_includes/main/archive.njk +++ b/src/_includes/main/archive.njk @@ -9,7 +9,7 @@ {% endif %}

- + {% endfor %} diff --git a/src/_includes/main/changelogs-list.njk b/src/_includes/main/changelogs-list.njk index edeabc25..072e2239 100644 --- a/src/_includes/main/changelogs-list.njk +++ b/src/_includes/main/changelogs-list.njk @@ -1,7 +1,7 @@
{% for log in changelogList | reverse %}
-

{{ log.date | niceDate }}

+

{{ log.date | formatDate }}

{{ log.templateContent | safe }} diff --git a/src/blog/posts.njk b/src/blog/posts.njk index 848ca9d0..e1e3f3f9 100644 --- a/src/blog/posts.njk +++ b/src/blog/posts.njk @@ -20,7 +20,7 @@ eleventyNavigation: {% endif %} - + {% endfor %} diff --git a/src/changelogs/changelogs.njk b/src/changelogs/changelogs.njk index 7838c8f5..ba3cda8e 100644 --- a/src/changelogs/changelogs.njk +++ b/src/changelogs/changelogs.njk @@ -19,7 +19,7 @@ eleventyNavigation:

Latest Changelogs

{% for log in changelogs %} -

{{ log.data.date | niceDate }}

+

{{ log.data.date | formatDate }}

{{ log.templateContent | safe }} {%- endfor %}
diff --git a/src/changelogs/logs/logs.11tydata.json b/src/changelogs/logs/logs.11tydata.json index 2aea9eb3..1067432f 100644 --- a/src/changelogs/logs/logs.11tydata.json +++ b/src/changelogs/logs/logs.11tydata.json @@ -2,6 +2,6 @@ "tags": ["changelogs", "feed items"], "permalink": false, "eleventyComputed": { - "title": "Changelog: {{ date | niceDate }}" + "title": "Changelog: {{ date | formatDate }}" } } \ No newline at end of file diff --git a/src/index.njk b/src/index.njk index 25fac2dd..a705b2fb 100644 --- a/src/index.njk +++ b/src/index.njk @@ -29,7 +29,7 @@ eleventyNavigation:

Updates

{% for log in collections["changelogs"] | reverse | itemLimit(1) %} -

{{ log.data.date | niceDate }}:

+

{{ log.data.date | formatDate }}:

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

View all site changelogs

diff --git a/src/pages/articles.md b/src/pages/articles.md index f56a7c4d..f749350d 100644 --- a/src/pages/articles.md +++ b/src/pages/articles.md @@ -16,7 +16,7 @@ Articles I have written. {%- for article in collections["my articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} @@ -32,7 +32,7 @@ Articles featuring other people's interview with me. {%- for article in collections["featured articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} diff --git a/src/pages/blog.njk b/src/pages/blog.njk index 82659543..e229d847 100644 --- a/src/pages/blog.njk +++ b/src/pages/blog.njk @@ -26,7 +26,7 @@ eleventyNavigation: {% endif %} - +

    {{ post.data.desc }}

    {% endfor %} diff --git a/src/pages/now.md b/src/pages/now.md index ceb37e00..3422cbe3 100644 --- a/src/pages/now.md +++ b/src/pages/now.md @@ -9,7 +9,7 @@ eleventyNavigation: order: 3 --- -*This page was last updated on {{ updated | niceDate }}.* +*This page was last updated on {{ updated | formatDate }}.* This is my [/now page](https://nownownow.com/about). You can find more pages like this at [nownownow.com](https://nownownow.com/). diff --git a/src/shrines/cassettebeasts/articles.md b/src/shrines/cassettebeasts/articles.md index 4746d387..bd8dbad3 100644 --- a/src/shrines/cassettebeasts/articles.md +++ b/src/shrines/cassettebeasts/articles.md @@ -18,7 +18,7 @@ eleventyNavigation: {%- for article in collections["cassette beasts articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} diff --git a/src/shrines/starwarskotor/articles.md b/src/shrines/starwarskotor/articles.md index 7e7bbcf2..89d25373 100644 --- a/src/shrines/starwarskotor/articles.md +++ b/src/shrines/starwarskotor/articles.md @@ -18,7 +18,7 @@ eleventyNavigation: {%- for article in collections["kotor both articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} @@ -28,7 +28,7 @@ eleventyNavigation: {%- for article in collections["kotor 1 articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} @@ -38,7 +38,7 @@ eleventyNavigation: {%- for article in collections["kotor 2 articles"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%} diff --git a/src/shrines/starwarskotor/guides.md b/src/shrines/starwarskotor/guides.md index 09915e93..7c63ae2b 100644 --- a/src/shrines/starwarskotor/guides.md +++ b/src/shrines/starwarskotor/guides.md @@ -18,7 +18,7 @@ eleventyNavigation: {%- for article in collections["kotor guides"] -%}
  • {{ article.data.articleTitle }}

    - +
  • {%- endfor -%}