From ec2aa74d36670d74c153aa0022ab22e79502a061 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Tue, 2 May 2023 01:33:25 -0600 Subject: update to new version of pyssg --- plt/art/index.html | 2 +- plt/art/page.html | 8 ++++---- plt/art/page_list.html | 12 ++++++------ plt/art/page_list_entry.html | 4 ++-- plt/art/tag.html | 2 +- 5 files changed, 14 insertions(+), 14 deletions(-) (limited to 'plt/art') diff --git a/plt/art/index.html b/plt/art/index.html index 87c083d..45c1907 100644 --- a/plt/art/index.html +++ b/plt/art/index.html @@ -45,7 +45,7 @@ {{tag_list.print(all_tags, "art-tags")}} {%import "art/page_list.html" as page_list%} - {{page_list.print(all_pages)}} + {{page_list.print(all_pages, config)}} {%endblock body_content%} {%block body_footer%} diff --git a/plt/art/page.html b/plt/art/page.html index 837422e..4506e27 100644 --- a/plt/art/page.html +++ b/plt/art/page.html @@ -42,11 +42,11 @@ {%block body_content%}

{{page.title}}

- + {%if page.summary is not none%} - {{page.summary}} + {{page.summary}} {%else%} - + {%endif%} @@ -58,7 +58,7 @@

By {{', '.join(page.author)}}

-

Posted: {{page.cdate}}

+

Posted: {{page.cdate('date')}}

{%import "tag_list.html" as tag_list%} {{tag_list.print(page.tags, "art-tags")}}
diff --git a/plt/art/page_list.html b/plt/art/page_list.html index c634bcf..2a51d25 100644 --- a/plt/art/page_list.html +++ b/plt/art/page_list.html @@ -1,21 +1,21 @@ -{%macro print(pages)%} +{%macro print(pages, config)%} {%import "art/page_list_entry.html" as art_entry%}
{%for p in pages%} {%if p.meta['tall'] is defined%} {%if p.meta['wide'] is defined%} - {{art_entry.print(p, 'tall wide')}} + {{art_entry.print(p, config, 'tall wide')}} {%else%} - {{art_entry.print(p, 'tall')}} + {{art_entry.print(p, config, 'tall')}} {%endif%} {%elif p.meta['wide'] is defined%} {%if p.meta['tall'] is defined%} - {{art_entry.print(p, 'tall wide')}} + {{art_entry.print(p, config, 'tall wide')}} {%else%} - {{art_entry.print(p, 'tall')}} + {{art_entry.print(p, config, 'tall')}} {%endif%} {%else%} - {{art_entry.print(p)}} + {{art_entry.print(p, config)}} {%endif%} {%endfor%}
diff --git a/plt/art/page_list_entry.html b/plt/art/page_list_entry.html index 1790025..0dea100 100644 --- a/plt/art/page_list_entry.html +++ b/plt/art/page_list_entry.html @@ -1,5 +1,5 @@ -{%macro print(page, class='')%} +{%macro print(page, config, class='')%} - {{page.title}} + {{page.title}} {%endmacro%} diff --git a/plt/art/tag.html b/plt/art/tag.html index 8881998..aa1c0b9 100644 --- a/plt/art/tag.html +++ b/plt/art/tag.html @@ -38,7 +38,7 @@

Art filtered by {{tag[0]}}

{%import "art/page_list.html" as page_list%} - {{page_list.print(tag_pages)}} + {{page_list.print(tag_pages, config)}} {%endblock body_content%} -- cgit v1.2.3-70-g09d2