diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:59:59 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-27 02:59:59 -0600 |
commit | 48cabe1df739d1452e7ecc5164122a067157b057 (patch) | |
tree | 39aff6842941e6d7fc511c068d8dff51fb228ed9 /pyssg.xyz/plt | |
parent | 369944746e3bf52b93919fe4b10262fa31f15a83 (diff) |
add extra method for date conversionsv0.8.3
Diffstat (limited to 'pyssg.xyz/plt')
-rw-r--r-- | pyssg.xyz/plt/blog/index.html | 8 | ||||
-rw-r--r-- | pyssg.xyz/plt/blog/page.html | 4 | ||||
-rw-r--r-- | pyssg.xyz/plt/blog/tag.html | 8 |
3 files changed, 10 insertions, 10 deletions
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%} diff --git a/pyssg.xyz/plt/blog/page.html b/pyssg.xyz/plt/blog/page.html index 06746ba..510129b 100644 --- a/pyssg.xyz/plt/blog/page.html +++ b/pyssg.xyz/plt/blog/page.html @@ -38,9 +38,9 @@ <h1>{{page.title}}</h1> <p>By {{', '.join(page.author)}}</p> - <p>Created: {{page.cdatetime.strftime(config['fmt']['date'])}}</p> + <p>Created: {{page.cdate('date')}}</p> {%if page.mdatetime is not none%} - <p>Modified: {{page.mdatetime.strftime(config['fmt']['date'])}}</p> + <p>Modified: {{page.mdate('date')}}</p> {%endif%} {{page.content}} diff --git a/pyssg.xyz/plt/blog/tag.html b/pyssg.xyz/plt/blog/tag.html index 5b05d7f..0a26882 100644 --- a/pyssg.xyz/plt/blog/tag.html +++ b/pyssg.xyz/plt/blog/tag.html @@ -42,13 +42,13 @@ <ul> {%for p in tag_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%} |