From 7e49db5ddefe8c515b5f3931a5c701efaac33d91 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 16 Dec 2022 17:45:03 -0600 Subject: change structure for new pyssg version --- plt/art/index.html | 60 ++++++++++++++++++++++++++++++++++ plt/art/page.html | 76 ++++++++++++++++++++++++++++++++++++++++++++ plt/art/page_list.html | 22 +++++++++++++ plt/art/page_list_entry.html | 5 +++ plt/art/tag.html | 54 +++++++++++++++++++++++++++++++ 5 files changed, 217 insertions(+) create mode 100644 plt/art/index.html create mode 100644 plt/art/page.html create mode 100644 plt/art/page_list.html create mode 100644 plt/art/page_list_entry.html create mode 100644 plt/art/tag.html (limited to 'plt/art') diff --git a/plt/art/index.html b/plt/art/index.html new file mode 100644 index 0000000..87c083d --- /dev/null +++ b/plt/art/index.html @@ -0,0 +1,60 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +Index -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} + +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_extra%} +{%endblock head_extra%} + +{%block head_og%} + + + + + + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

Index -- {{config['title']}}

+ +

Here is where I will post all of my drawings, sketches and more art related stuff. Right now this is managed similar to the blog, but more "gallery" oriented. The structure is kind of a 3-level zoom, where you see all the images in this index (or on a tag index), then you see the whole image in its separate link with additional information and then you can see the raw image itself.

+ +

Get the RSS feed: {{config['url']['main']}}/rss.xml

+ + {%import "tag_list.html" as tag_list%} + {{tag_list.print(all_tags, "art-tags")}} + + {%import "art/page_list.html" as page_list%} + {{page_list.print(all_pages)}} +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file diff --git a/plt/art/page.html b/plt/art/page.html new file mode 100644 index 0000000..837422e --- /dev/null +++ b/plt/art/page.html @@ -0,0 +1,76 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +{{page.title}} -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} +{%if page.summary is not none%} + +{%else%} + +{%endif%} +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_og%} + + + + +{%if page.summary is not none%} + +{%else%} + +{%endif%} + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

{{page.title}}

+ + + {%if page.summary is not none%} + {{page.summary}} + {%else%} + + {%endif%} + + + {{page.content}} + + {%import "page_nav.html" as page_nav%} + {{page_nav.print(page, config, "art-nav")}} + +
+
+

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

+

Posted: {{page.cdate}}

+ {%import "tag_list.html" as tag_list%} + {{tag_list.print(page.tags, "art-tags")}} +
+{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file diff --git a/plt/art/page_list.html b/plt/art/page_list.html new file mode 100644 index 0000000..c634bcf --- /dev/null +++ b/plt/art/page_list.html @@ -0,0 +1,22 @@ +{%macro print(pages)%} +{%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')}} + {%else%} + {{art_entry.print(p, 'tall')}} + {%endif%} + {%elif p.meta['wide'] is defined%} + {%if p.meta['tall'] is defined%} + {{art_entry.print(p, 'tall wide')}} + {%else%} + {{art_entry.print(p, 'tall')}} + {%endif%} + {%else%} + {{art_entry.print(p)}} + {%endif%} + {%endfor%} +
+{%endmacro%} diff --git a/plt/art/page_list_entry.html b/plt/art/page_list_entry.html new file mode 100644 index 0000000..1790025 --- /dev/null +++ b/plt/art/page_list_entry.html @@ -0,0 +1,5 @@ +{%macro print(page, class='')%} + + {{page.title}} + +{%endmacro%} diff --git a/plt/art/tag.html b/plt/art/tag.html new file mode 100644 index 0000000..8881998 --- /dev/null +++ b/plt/art/tag.html @@ -0,0 +1,54 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +Art filtered by {{tag[0]}} -- {{config['title']}} +{%endblock head_title%} + +{%block head_description%} + +{%endblock head_description%} + +{%block head_rss%} + +{%endblock head_rss%} + +{%block head_extra%} +{%endblock head_extra%} + +{%block head_og%} + + + + + + + +{%endblock head_og%} + +{%block body_header%} +{%import 'body/header.html' as body_header%} +{{body_header.print(config)}} +{%endblock body_header%} + +{%block body_content%} +

Art filtered by {{tag[0]}}

+ + {%import "art/page_list.html" as page_list%} + {{page_list.print(tag_pages)}} + +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +{{body_footer.rss(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file -- cgit v1.2.3-70-g09d2