From ec2aa74d36670d74c153aa0022ab22e79502a061 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado <david@luevano.xyz>
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%}
   <h1>{{page.title}}</h1>
 
-  <a class="zoom-in" href="{{page.image_url}}" alt="See raw.">
+  <a class="zoom-in" href="{{config['url']['static']}}/{{page.meta['image_url'][0]}}" alt="See raw.">
   {%if page.summary is not none%}
-    <img src="{{page.image_url}}" alt="{{page.summary}}">
+    <img src="{{config['url']['static']}}/{{page.meta['image_url'][0]}}" alt="{{page.summary}}">
   {%else%}
-    <img src="{{page.image_url}}">
+    <img src="{{config['url']['static']}}/{{page.meta['image_url'][0]}}">
     {%endif%}
     </a>
 
@@ -58,7 +58,7 @@
   <hr>
   <div class="art-info">
     <p>By {{', '.join(page.author)}}</p>
-    <p>Posted: {{page.cdate}}</p>
+    <p>Posted: {{page.cdate('date')}}</p>
     {%import "tag_list.html" as tag_list%}
     {{tag_list.print(page.tags, "art-tags")}}
   </div>
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%}
 <div class="art-grid">
   {%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%}
 </div>
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='')%}
 <a class="zoom-in {{class}}" href="{{page.url}}" alt="{{page.title}}">
-  <img src="{{page.image_url}}" alt="{{page.title}}">
+  <img src="{{config['url']['static']}}/{{page.meta['image_url'][0]}}" alt="{{page.title}}">
 </a>
 {%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 @@
   <h1>Art filtered by {{tag[0]}}</h1>
 
   {%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