From 48cabe1df739d1452e7ecc5164122a067157b057 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
Date: Tue, 27 Dec 2022 02:59:59 -0600
Subject: add extra method for date conversions

---
 pyssg.xyz/plt/blog/index.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'pyssg.xyz/plt/blog/index.html')

diff --git a/pyssg.xyz/plt/blog/index.html b/pyssg.xyz/plt/blog/index.html
index 057cd79..c9b13c2 100644
--- a/pyssg.xyz/plt/blog/index.html
+++ b/pyssg.xyz/plt/blog/index.html
@@ -48,13 +48,13 @@
 <ul>
 {%for p in all_pages%}
   {%if loop.previtem%}
-    {%if loop.previtem.cdatetime.strftime(config['fmt']['list_sep_date']) != p.cdatetime.strftime(config['fmt']['list_sep_date'])%}
-      <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3>
+    {%if loop.previtem.cdate('list_sep_date') != p.cdate('list_sep_date')%}
+      <h3>{{p.cdate('list_sep_date')}}</h3>
     {%endif%}
   {%else%}
-      <h3>{{p.cdatetime.strftime(config['fmt']['list_sep_date'])}}</h3>
+      <h3>{{p.cdate('list_sep_date')}}</h3>
   {%endif%}
-  <li>{{p.cdatetime.strftime(config['fmt']['list_date'])}} - <a href="{{p.url}}">{{p.title}}</a></li>
+  <li>{{p.cdate('list_date')}} - <a href="{{p.url}}">{{p.title}}</a></li>
 {%endfor%}
 </ul>
 {%endblock body_content%}
-- 
cgit v1.2.3-70-g09d2