From 0b8441c79b047f81526bbb83febc40d7530e35d6 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Mon, 5 Dec 2022 05:03:45 -0600 Subject: add extra configuration for more control, add pyssg.xyz example this is the first step towards creating a way to handle multiple subdomains/configs in a single run for a more cohesive site generation --- pyssg.xyz/plt/index.html | 32 ++++++++++++++++++++++++++++++++ pyssg.xyz/plt/page.html | 25 +++++++++++++++++++++++++ pyssg.xyz/plt/rss.xml | 39 +++++++++++++++++++++++++++++++++++++++ pyssg.xyz/plt/sitemap.xml | 22 ++++++++++++++++++++++ pyssg.xyz/plt/tag.html | 26 ++++++++++++++++++++++++++ 5 files changed, 144 insertions(+) create mode 100644 pyssg.xyz/plt/index.html create mode 100644 pyssg.xyz/plt/page.html create mode 100644 pyssg.xyz/plt/rss.xml create mode 100644 pyssg.xyz/plt/sitemap.xml create mode 100644 pyssg.xyz/plt/tag.html (limited to 'pyssg.xyz/plt') diff --git a/pyssg.xyz/plt/index.html b/pyssg.xyz/plt/index.html new file mode 100644 index 0000000..96d66ef --- /dev/null +++ b/pyssg.xyz/plt/index.html @@ -0,0 +1,32 @@ + + + + + + Index -- {{config['title']}} + + +

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

+

Some text here.

+ +

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

+ +

Articles

+ + + diff --git a/pyssg.xyz/plt/page.html b/pyssg.xyz/plt/page.html new file mode 100644 index 0000000..d7f5e43 --- /dev/null +++ b/pyssg.xyz/plt/page.html @@ -0,0 +1,25 @@ + + + + + + {{page.title}} -- {{config['title']}} + + +

{{page.title}}

+

By {{page.author}}

+

Created: {{page.cdate}}

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

Modified: {{page.mdate}}

+ {%endif%} + + {{page.content}} + +

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

+ + + diff --git a/pyssg.xyz/plt/rss.xml b/pyssg.xyz/plt/rss.xml new file mode 100644 index 0000000..6a3eb00 --- /dev/null +++ b/pyssg.xyz/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{config['title']}} + {{config['url']['main']}} + + Short site description. + en-us + Blog + Copyright 2021 Somebody + some@one.com (Sombody) + some@one.com (Sombody) + {{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']}}/images/blog.png + {{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/pyssg.xyz/plt/sitemap.xml b/pyssg.xyz/plt/sitemap.xml new file mode 100644 index 0000000..d9ff21b --- /dev/null +++ b/pyssg.xyz/plt/sitemap.xml @@ -0,0 +1,22 @@ + + + {%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/pyssg.xyz/plt/tag.html b/pyssg.xyz/plt/tag.html new file mode 100644 index 0000000..59cbdf1 --- /dev/null +++ b/pyssg.xyz/plt/tag.html @@ -0,0 +1,26 @@ + + + + + + Posts filtered by {{tag[0]}} -- {{config['title']}} + + +

Posts filtered by {{tag[0]}}

+

Some text here.

+ +

Articles

+ + + -- cgit v1.2.3-70-g09d2