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 +++++++++++++++++++++++++++++ plt/base.html | 38 +++++++++++++++++++++ plt/blog/index.html | 60 ++++++++++++++++++++++++++++++++ plt/blog/page.html | 81 ++++++++++++++++++++++++++++++++++++++++++++ plt/blog/page_list.html | 15 ++++++++ plt/blog/tag.html | 54 +++++++++++++++++++++++++++++ plt/body/footer.html | 33 ++++++++++++++++++ plt/body/header.html | 35 +++++++++++++++++++ plt/highlightjs.html | 9 +++++ plt/page_nav.html | 28 +++++++++++++++ plt/root_page.html | 52 ++++++++++++++++++++++++++++ plt/rss.xml | 39 +++++++++++++++++++++ plt/sitemap.xml | 65 +++++++++++++++++++++++++++++++++++ plt/tag_list.html | 9 +++++ 18 files changed, 735 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 create mode 100644 plt/base.html create mode 100644 plt/blog/index.html create mode 100644 plt/blog/page.html create mode 100644 plt/blog/page_list.html create mode 100644 plt/blog/tag.html create mode 100644 plt/body/footer.html create mode 100644 plt/body/header.html create mode 100644 plt/highlightjs.html create mode 100644 plt/page_nav.html create mode 100644 plt/root_page.html create mode 100644 plt/rss.xml create mode 100644 plt/sitemap.xml create mode 100644 plt/tag_list.html (limited to 'plt') 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 diff --git a/plt/base.html b/plt/base.html new file mode 100644 index 0000000..d5cb77b --- /dev/null +++ b/plt/base.html @@ -0,0 +1,38 @@ + + + + + + + + {%block head_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%}{%endblock body_header%} +
+ +
+ {%block body_content%}{%endblock body_content%} +
+ + + + \ No newline at end of file diff --git a/plt/blog/index.html b/plt/blog/index.html new file mode 100644 index 0000000..e9a03cf --- /dev/null +++ b/plt/blog/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']}}

+ +

Welcome to my blog where I'll post whatever I please, ranging from rants to how-to's. Además, este pex va a estar en español e inglés porque quiero (no una mezcla en cada entrada, pero sí entradas completas en diferentes lenguajes).

+ +

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

+ + {%import "tag_list.html" as tag_list%} + {{tag_list.print(all_tags, "article-tags")}} + + {%import "blog/page_list.html" as page_list%} + {{page_list.print("Articles", 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/blog/page.html b/plt/blog/page.html new file mode 100644 index 0000000..71b4cfe --- /dev/null +++ b/plt/blog/page.html @@ -0,0 +1,81 @@ +{%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_extra%} +{%import "highlightjs.html" as hljs%} +{{hljs.print()}} +{%endblock head_extra%} + +{%block gdscript_hl%} + + +{%endblock gdscript_hl%} + +{%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}}

+ + {{page.content}} + + {%import "page_nav.html" as page_nav%} + {{page_nav.print(page, config, "page-nav")}} + +
+
+

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

+

Created: {{page.cdate}}

+ {%if page.mdate is not none%} +

Modified: {{page.mdate}}

+ {%endif%} + {%import "tag_list.html" as tag_list%} + {{tag_list.print(page.tags, "article-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/blog/page_list.html b/plt/blog/page_list.html new file mode 100644 index 0000000..b818884 --- /dev/null +++ b/plt/blog/page_list.html @@ -0,0 +1,15 @@ +{%macro print(name, pages)%} +

{{name}}

+ +{%endmacro%} diff --git a/plt/blog/tag.html b/plt/blog/tag.html new file mode 100644 index 0000000..ec826bf --- /dev/null +++ b/plt/blog/tag.html @@ -0,0 +1,54 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +Posts 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%} +

Posts filtered by {{tag[0]}}

+ + {%import "blog/page_list.html" as page_list%} + {{page_list.print("Articles", 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 diff --git a/plt/body/footer.html b/plt/body/footer.html new file mode 100644 index 0000000..32dcaf0 --- /dev/null +++ b/plt/body/footer.html @@ -0,0 +1,33 @@ +{%macro contact(config)%} + + + Contact + +{%endmacro%} + +{%macro donate(config)%} + + + Donate + +{%endmacro%} + +{%macro rss(config)%} + + + RSS + +{%endmacro%} + +{%macro created_with()%} + + + Created with pyssg + +{%endmacro%} + +{%macro copyright()%} + + Copyright 2023 David Luévano Alvarado + +{%endmacro%} \ No newline at end of file diff --git a/plt/body/header.html b/plt/body/header.html new file mode 100644 index 0000000..5ea4022 --- /dev/null +++ b/plt/body/header.html @@ -0,0 +1,35 @@ +{%macro print(config)%} + + + +{%endmacro%} \ No newline at end of file diff --git a/plt/highlightjs.html b/plt/highlightjs.html new file mode 100644 index 0000000..0a1ded3 --- /dev/null +++ b/plt/highlightjs.html @@ -0,0 +1,9 @@ +{%macro print()%} + + +{%block gdscript_hl%}{%endblock gdscript_hl%} + + +{%endmacro%} \ No newline at end of file diff --git a/plt/page_nav.html b/plt/page_nav.html new file mode 100644 index 0000000..d182e53 --- /dev/null +++ b/plt/page_nav.html @@ -0,0 +1,28 @@ +{%macro print(page, config, div_class_name)%} +
+ {%if page.next is not none%} + + + + Next + + + {%endif%} + + + + + Index + + + + {%if page.previous is not none%} + + + + Previous + + + {%endif%} +
+{%endmacro%} diff --git a/plt/root_page.html b/plt/root_page.html new file mode 100644 index 0000000..ddc3ea0 --- /dev/null +++ b/plt/root_page.html @@ -0,0 +1,52 @@ +{%extends "base.html"%} + +{%block html_lang%} +{{config['lang']}} +{%endblock html_lang%} + +{%block head_title%} +{{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%} +

{{page.title}}

+ + {{page.content}} +{%endblock body_content%} + +{%block body_footer%} +{%import 'body/footer.html' as body_footer%} +{{body_footer.contact(config)}} +{{body_footer.donate(config)}} +
+{{body_footer.created_with()}} +
+{{body_footer.copyright()}} +{%endblock body_footer%} \ No newline at end of file diff --git a/plt/rss.xml b/plt/rss.xml new file mode 100644 index 0000000..5f6231b --- /dev/null +++ b/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{config['title']}} + {{config['url']['main']}} + + {{config['description']}} + en-us + {{config['rss_gategory']}} + Copyright 2023 {{config['author']}} + {{config['author_email']}} ({{config['author']}}) + {{config['author_email']}} ({{config['author']}}) + {{config['info']['rss_run_date']}} + {{config['info']['rss_run_date']}} + pyssg v{{config['info']['version']}} + https://validator.w3.org/feed/docs/rss2.html + 30 + + {{config['url']['static']}}/{{config['url']['default_image']}} + {{config['title']}} + {{config['url']['main']}} + + {%for p in all_pages%} + + {{p.title}} + {{p.url}} + {{p.url}} + {{p.cdate_rss}} + {%for t in p.tags%} + {{t[0].lower().capitalize()}} + {%endfor%} + {{p.summary}} + + + {%endfor%} + + diff --git a/plt/sitemap.xml b/plt/sitemap.xml new file mode 100644 index 0000000..f7eaa47 --- /dev/null +++ b/plt/sitemap.xml @@ -0,0 +1,65 @@ + + + + https://luevano.xyz/index.html + 2022-12-16 + monthly + 1.0 + + + https://luevano.xyz/contact.html + 2022-12-16 + monthly + 1.0 + + + https://luevano.xyz/donate.html + 2022-12-16 + monthly + 1.0 + + + https://blog.luevano.xyz + 2022-12-16 + daily + 1.0 + + + https://art.luevano.xyz + 2022-12-16 + daily + 1.0 + + + https://gb.luevano.xyz + 2022-12-16 + monthly + 0.5 + + + https://git.luevano.xyz + 2022-12-16 + daily + 1.0 + + + {%for p in all_pages%} + + {{p.url}} + {{p.mdate_sitemap if p.mdate_sitemap else p.cdate_sitemap}} + weekly + 1.0 + + {%endfor%} + + {%for t in all_tags%} + + {{t[1]}} + {{config['info']['sitemap_run_date']}} + daily + 0.5 + + {%endfor%} + diff --git a/plt/tag_list.html b/plt/tag_list.html new file mode 100644 index 0000000..8fbbdc5 --- /dev/null +++ b/plt/tag_list.html @@ -0,0 +1,9 @@ +{%macro print(tags, div_class_name)%} +
+

Tags: + {%for t in tags-%} + {{t[0]}}{{", " if not loop.last else ""}} + {%-endfor%} +

+
+{%endmacro%} -- cgit v1.2.3-70-g09d2