aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-03-13 23:51:50 -0500
committerChristian Cleberg <hello@cleberg.net>2024-03-13 23:51:50 -0500
commita70011e6498de76b42d6fc61cefd99ef6234c353 (patch)
treef8ba53d8866030e1150c3cd80c0d57577889adb4 /templates
parentfa24aab1fe868a6d313d7cfd7afe9c27c4e21f33 (diff)
downloadcleberg.net-a70011e6498de76b42d6fc61cefd99ef6234c353.tar.gz
cleberg.net-a70011e6498de76b42d6fc61cefd99ef6234c353.tar.bz2
cleberg.net-a70011e6498de76b42d6fc61cefd99ef6234c353.zip
update date formatting
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html2
-rw-r--r--templates/section.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.html b/templates/index.html
index 8b86fe0..a100512 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -13,7 +13,7 @@
{% if i < 3%}
{% set_global i = i + 1%}
<div class="post">
- <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time>
+ <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time>
<a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
</div>
{% endif %}
diff --git a/templates/section.html b/templates/section.html
index d36e32f..184587b 100644
--- a/templates/section.html
+++ b/templates/section.html
@@ -11,7 +11,7 @@
<h2>{{ post_date }}</h2>
{% endif %}
<div class="post">
- <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time>
+ <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time>
<a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
</div>
{% endfor %}