From 11b9e8505b8a92555cce6615f19268a620e9ce53 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 4 Jun 2021 22:13:44 -0600 Subject: refactor and add support for jinija --- plt/index.html | 32 ++++++++++++++++++++++++++++++++ plt/page.html | 25 +++++++++++++++++++++++++ plt/rss.xml | 39 +++++++++++++++++++++++++++++++++++++++ plt/sitemap.xml | 22 ++++++++++++++++++++++ plt/tag.html | 26 ++++++++++++++++++++++++++ 5 files changed, 144 insertions(+) create mode 100644 plt/index.html create mode 100644 plt/page.html create mode 100644 plt/rss.xml create mode 100644 plt/sitemap.xml create mode 100644 plt/tag.html (limited to 'plt') diff --git a/plt/index.html b/plt/index.html new file mode 100644 index 0000000..c96db3b --- /dev/null +++ b/plt/index.html @@ -0,0 +1,32 @@ + + + + + + Index -- {{site_title}} + + +

Index -- {{site_title}}

+

Some text here.

+ +

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

+ +

Articles

+ + + diff --git a/plt/page.html b/plt/page.html new file mode 100644 index 0000000..fefaaa6 --- /dev/null +++ b/plt/page.html @@ -0,0 +1,25 @@ + + + + + + {{page.title}} -- {{site_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/plt/rss.xml b/plt/rss.xml new file mode 100644 index 0000000..99b2b49 --- /dev/null +++ b/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{site_title}} + {{site_base_url}} + + Short site description. + en-us + Blog + Copyright 2021 Somebody + some@one.com (Sombody) + some@one.com (Sombody) + {{run_date}} + {{run_date}} + pyssg v{{pyssg_version}} + https://validator.w3.org/feed/docs/rss2.html + 30 + + {{site_base_static_url}}/images/blog.png + {{site_title}} + {{site_base_url}} + + {%for p in all_pages%} + + {{p.title}} + {{p.url}} + {{p.url}} + {{p.cdate_rss}} + {%for t in p.tags%} + {{t[0]}} + {%endfor%} + {{p.summary}} + + + {%endfor%} + + diff --git a/plt/sitemap.xml b/plt/sitemap.xml new file mode 100644 index 0000000..a5b5404 --- /dev/null +++ b/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]}} + {{run_date}} + daily + 0.5 + + {%endfor%} + diff --git a/plt/tag.html b/plt/tag.html new file mode 100644 index 0000000..2fdc27b --- /dev/null +++ b/plt/tag.html @@ -0,0 +1,26 @@ + + + + + + Posts filtered by {{tag[0]}} -- {{site_title}} + + +

Posts filtered by {{tag[0]}}

+

Some text here.

+ +

Articles

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