From b171347f739b2ada7960ad50bcba47e898d890d2 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Fri, 4 Jun 2021 23:50:58 -0600 Subject: reflect changes on updated pyssg using jinja templates --- blog/plt/base.html | 108 +++++++++++++++++++++++++++++++++++++++++++++++++++ blog/plt/index.html | 34 ++++++++++++++++ blog/plt/page.html | 22 +++++++++++ blog/plt/rss.xml | 39 +++++++++++++++++++ blog/plt/sitemap.xml | 22 +++++++++++ blog/plt/tag.html | 18 +++++++++ 6 files changed, 243 insertions(+) create mode 100644 blog/plt/base.html create mode 100644 blog/plt/index.html create mode 100644 blog/plt/page.html create mode 100644 blog/plt/rss.xml create mode 100644 blog/plt/sitemap.xml create mode 100644 blog/plt/tag.html (limited to 'blog/plt') diff --git a/blog/plt/base.html b/blog/plt/base.html new file mode 100644 index 0000000..9919829 --- /dev/null +++ b/blog/plt/base.html @@ -0,0 +1,108 @@ + +{%if page is defined%} + +{%else%} + +{%endif%} + + + + + {%if page is defined%} + {{page.title}} -- {{site_title}} + {%elif tag is defined%} + Posts filtered by {{tag[0]}} -- {{site_title}} + {%else%} + Index -- {{site_title}} + {%endif%} + + + + + + + + + + + + + + + + + + + +
+ + +
+ + + +
+
+ +
+ {%block content%}{%endblock content%} +
+ + + + diff --git a/blog/plt/index.html b/blog/plt/index.html new file mode 100644 index 0000000..7efcf20 --- /dev/null +++ b/blog/plt/index.html @@ -0,0 +1,34 @@ +{%extends "base.html"%} +{%block content%} +

Index -- {{site_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: {{site_base_url}}/rss.xml +

+ +
+

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

+
+ +

Articles

+ +{%endblock content%} diff --git a/blog/plt/page.html b/blog/plt/page.html new file mode 100644 index 0000000..a98338e --- /dev/null +++ b/blog/plt/page.html @@ -0,0 +1,22 @@ +{%extends "base.html"%} +{%block content%} +

{{page.title}}

+ + {{page.content}} + +
+
+

By {{page.author}}

+

Created: {{page.cdate}}

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

Modified: {{page.mdate}}

+ {%endif%} + +
+{%endblock content%} diff --git a/blog/plt/rss.xml b/blog/plt/rss.xml new file mode 100644 index 0000000..5e06c36 --- /dev/null +++ b/blog/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{site_title}} + {{site_base_url}} + + A personal weblog ranging from rants to how to's and other thoughts. + en-us + Blog + Copyright 2021 David Luévano Alvarado + david@luevano.xyz (David Luévano Alvarado) + david@luevano.xyz (David Luévano Alvarado) + {{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].lower().capitalize()}} + {%endfor%} + {{p.summary}} + + + {%endfor%} + + diff --git a/blog/plt/sitemap.xml b/blog/plt/sitemap.xml new file mode 100644 index 0000000..a5b5404 --- /dev/null +++ b/blog/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/blog/plt/tag.html b/blog/plt/tag.html new file mode 100644 index 0000000..50b221f --- /dev/null +++ b/blog/plt/tag.html @@ -0,0 +1,18 @@ +{%extends "base.html"%} +{%block content%} +

Posts filtered by {{tag[0]}}

+ +

Articles

+ +{%endblock content%} -- cgit v1.2.3-70-g09d2