diff options
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%} |