summaryrefslogtreecommitdiff
path: root/plt/art
diff options
context:
space:
mode:
Diffstat (limited to 'plt/art')
-rw-r--r--plt/art/index.html2
-rw-r--r--plt/art/page.html8
-rw-r--r--plt/art/page_list.html12
-rw-r--r--plt/art/page_list_entry.html4
-rw-r--r--plt/art/tag.html2
5 files changed, 14 insertions, 14 deletions
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%}