diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-05-02 01:33:25 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-05-02 01:33:25 -0600 |
commit | ec2aa74d36670d74c153aa0022ab22e79502a061 (patch) | |
tree | b6e6eda5f8ae90f23e371d8e8a097e4c7efaab96 /plt/blog | |
parent | 81d0d609e47d5cdfab3d5db2eff6ec91b5d2773b (diff) |
update to new version of pyssg
Diffstat (limited to 'plt/blog')
-rw-r--r-- | plt/blog/page.html | 10 | ||||
-rw-r--r-- | plt/blog/page_list.html | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/plt/blog/page.html b/plt/blog/page.html index 71b4cfe..40a98e2 100644 --- a/plt/blog/page.html +++ b/plt/blog/page.html @@ -22,12 +22,12 @@ {%block head_extra%} {%import "highlightjs.html" as hljs%} -{{hljs.print()}} +{{hljs.print(config)}} {%endblock head_extra%} {%block gdscript_hl%} <!-- Specific to GDScript --> -<script type="text/javascript" src="hl/languages/gdscript.min.js"></script> +<script type="text/javascript" src="{{config['url']['static']}}/hl/languages/gdscript.min.js"></script> {%endblock gdscript_hl%} {%block head_og%} @@ -60,9 +60,9 @@ <hr> <div class="article-info"> <p>By {{', '.join(page.author)}}</p> - <p>Created: {{page.cdate}}</p> - {%if page.mdate is not none%} - <p>Modified: {{page.mdate}}</p> + <p>Created: {{page.cdate('date')}}</p> + {%if page.mdatetime is not none%} + <p>Modified: {{page.mdate('date')}}</p> {%endif%} {%import "tag_list.html" as tag_list%} {{tag_list.print(page.tags, "article-tags")}} diff --git a/plt/blog/page_list.html b/plt/blog/page_list.html index b818884..33201f8 100644 --- a/plt/blog/page_list.html +++ b/plt/blog/page_list.html @@ -3,13 +3,13 @@ <ul class="page-list"> {%for p in pages%} {%if loop.previtem%} - {%if loop.previtem.cdate_list_sep != p.cdate_list_sep%} - <h3>{{p.cdate_list_sep}}</h3> + {%if loop.previtem.cdate('list_sep_date') != p.cdate('list_sep_date')%} + <h3>{{p.cdate('list_sep_date')}}</h3> {%endif%} {%else%} - <h3>{{p.cdate_list_sep}}</h3> + <h3>{{p.cdate('list_sep_date')}}</h3> {%endif%} - <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li> + <li>{{p.cdate('list_date')}} - <a href="{{p.url}}">{{p.title}}</a></li> {%endfor%} </ul> {%endmacro%} |