aboutsummaryrefslogtreecommitdiff
path: root/lume/src/_includes
diff options
context:
space:
mode:
authorscarf <greenscarf005@gmail.com>2024-01-29 03:23:15 +0900
committerGitHub <noreply@github.com>2024-01-28 13:23:15 -0500
commita16146721f79e3ae30f59ed6515bbbf3ccb8dbcf (patch)
treeaf60e71aaa58190f06f376622747a7fac6fbdcda /lume/src/_includes
parent95d775d4d8e6c3d3204ad6360ea29fb6dff53a2c (diff)
downloadxesite-a16146721f79e3ae30f59ed6515bbbf3ccb8dbcf.tar.xz
xesite-a16146721f79e3ae30f59ed6515bbbf3ccb8dbcf.zip
feat: use time tag for date (#760)
* feat: use `time` tag * refactor: use `DATE_US` filter
Diffstat (limited to 'lume/src/_includes')
-rw-r--r--lume/src/_includes/blog.njk2
1 files changed, 1 insertions, 1 deletions
diff --git a/lume/src/_includes/blog.njk b/lume/src/_includes/blog.njk
index 6349cce..9e8d625 100644
--- a/lume/src/_includes/blog.njk
+++ b/lume/src/_includes/blog.njk
@@ -7,7 +7,7 @@ layout: base.njk
<article class="prose dark:prose-invert max-w-none">
<h1>{{title}}</h1>
<p class="text-sm text-fg-3 dark:text-fgDark-3 mb-2">
- Published on {{date.toLocaleDateString("en-US", { year: "numeric", month: "2-digit", day: "2-digit" })}}, {{ readingInfo.words }} words, {{ readingInfo.minutes }} minutes to read
+ Published on <time datetime={{date | date("DATE")}}>{{date | date("DATE_US")}}</time>, {{ readingInfo.words }} words, {{ readingInfo.minutes }} minutes to read
</p>
{% if hero %}