cmc/cleberg.net

My personal web garden & blog.

clone: git clone https://gitbay.org/cmc/cleberg.net.git

20248dc0aa07cb395c3719cc6ca3750b159f4c0d

unsigned

author: Christian Cleberg <hello@cleberg.net> · 2024-03-14T04:51:50Z

update date formatting
 templates/index.html   | 2 +-
 templates/section.html | 2 +-
 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 %}