Commit 20248dc0aa

20248dc0aa07cb395c3719cc6ca3750b159f4c0d

parent: ccbaa7a60d

Unsigned

cmc <hello@cleberg.net> · 2024-03-14 04:51 UTC

update date formatting

Layout: unified · split

templates/index.html +1 −1
@@ -13,7 +13,7 @@
13 {% if i < 3%} 13 {% if i < 3%}
14 {% set_global i = i + 1%} 14 {% set_global i = i + 1%}
15 <div class="post"> 15 <div class="post">
16 <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time> 16 <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time>
17 <a href="/blog/{{ page.slug }}/">{{ page.title }}</a> 17 <a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
18 </div> 18 </div>
19 {% endif %} 19 {% endif %}
templates/section.html +1 −1
@@ -11,7 +11,7 @@
11 <h2>{{ post_date }}</h2> 11 <h2>{{ post_date }}</h2>
12 {% endif %} 12 {% endif %}
13 <div class="post"> 13 <div class="post">
14 <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date }}</time> 14 <time datetime="{{ page.date | date(format='%Y-%m-%d %H:%M:%S') }}">{{ page.date | date(format='%Y-%m-%d') }}</time>
15 <a href="/blog/{{ page.slug }}/">{{ page.title }}</a> 15 <a href="/blog/{{ page.slug }}/">{{ page.title }}</a>
16 </div> 16 </div>
17{% endfor %} 17{% endfor %}