From f2b417553920d1d4b195e5a9d78e3fe019b2c163 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 5 Jun 2021 19:19:19 -0600 Subject: modify relative links, add base for art page --- art/plt/base.html | 103 +++++++++++++++++++++++++++++++++++++++++++++++++ art/plt/index.html | 31 +++++++++++++++ art/plt/page.html | 29 ++++++++++++++ art/plt/page_list.html | 15 +++++++ art/plt/rss.xml | 39 +++++++++++++++++++ art/plt/sitemap.xml | 22 +++++++++++ art/plt/tag.html | 20 ++++++++++ art/plt/tag_list.html | 9 +++++ 8 files changed, 268 insertions(+) create mode 100644 art/plt/base.html create mode 100644 art/plt/index.html create mode 100644 art/plt/page.html create mode 100644 art/plt/page_list.html create mode 100644 art/plt/rss.xml create mode 100644 art/plt/sitemap.xml create mode 100644 art/plt/tag.html create mode 100644 art/plt/tag_list.html (limited to 'art') diff --git a/art/plt/base.html b/art/plt/base.html new file mode 100644 index 0000000..6c56ac4 --- /dev/null +++ b/art/plt/base.html @@ -0,0 +1,103 @@ + + + + + + + {%block head_title%}{%endblock head_title%} -- {{config.title}} + + + + + + + + + + + + + + + + + + + + {%block head_og%}{%endblock head_og%} + + + +
+ + +
+ + + +
+
+ +
+ {%block content%}{%endblock content%} +
+ + + + diff --git a/art/plt/index.html b/art/plt/index.html new file mode 100644 index 0000000..5b1c9e1 --- /dev/null +++ b/art/plt/index.html @@ -0,0 +1,31 @@ +{%extends "base.html"%} +{%block html_lang%}en{%endblock html_lang%} +{%block head_title%}Index{%endblock head_title%} +{%block head_description%}My personal blog where I post about my thoughts, some how-to's, or general ranting.{%endblock head_description%} +{%block head_og%} + + + + + + + +{%endblock head_og%} +{%block 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}}/rss.xml +

+ + {%import "tag_list.html" as tag_list%} + {{tag_list.print(all_tags)}} + + {%import "page_list.html" as page_list%} + {{page_list.print(all_pages)}} + +{%endblock content%} diff --git a/art/plt/page.html b/art/plt/page.html new file mode 100644 index 0000000..dbb2734 --- /dev/null +++ b/art/plt/page.html @@ -0,0 +1,29 @@ +{%extends "base.html"%} +{%block html_lang%}{{page.lang}}{%endblock html_lang%} +{%block head_title%}{{page.title}}{%endblock head_title%} +{%block head_description%}{{page.summary}}{%endblock head_description%} +{%block head_og%} + + + + + + + +{%endblock head_og%} +{%block content%} +

{{page.title}}

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

By {{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)}} +
+{%endblock content%} diff --git a/art/plt/page_list.html b/art/plt/page_list.html new file mode 100644 index 0000000..16dc4d5 --- /dev/null +++ b/art/plt/page_list.html @@ -0,0 +1,15 @@ +{%macro print(pages)%} +

Articles

+ +{%endmacro%} diff --git a/art/plt/rss.xml b/art/plt/rss.xml new file mode 100644 index 0000000..5be7c37 --- /dev/null +++ b/art/plt/rss.xml @@ -0,0 +1,39 @@ + + + + {{config.title}} + {{config.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) + {{config.run_date_rss}} + {{config.run_date_rss}} + pyssg v{{config.version}} + https://validator.w3.org/feed/docs/rss2.html + 30 + + {{config.static_url}}/images/blog.png + {{config.title}} + {{config.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/art/plt/sitemap.xml b/art/plt/sitemap.xml new file mode 100644 index 0000000..26ee5c1 --- /dev/null +++ b/art/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.run_date_sitemap}} + daily + 0.5 + + {%endfor%} + diff --git a/art/plt/tag.html b/art/plt/tag.html new file mode 100644 index 0000000..d379590 --- /dev/null +++ b/art/plt/tag.html @@ -0,0 +1,20 @@ +{%extends "base.html"%} +{%block html_lang%}en{%endblock html_lang%} +{%block head_title%}Posts filtered by {{tag[0]}}{%endblock head_title%} +{%block head_description%}Posts filtered by {{tag[0]}}{%endblock head_description%} +{%block head_og%} + + + + + + + +{%endblock head_og%} +{%block content%} +

Posts filtered by {{tag[0]}}

+ + {%import "page_list.html" as page_list%} + {{page_list.print(tag_pages)}} + +{%endblock content%} diff --git a/art/plt/tag_list.html b/art/plt/tag_list.html new file mode 100644 index 0000000..2dfb70c --- /dev/null +++ b/art/plt/tag_list.html @@ -0,0 +1,9 @@ +{%macro print(tags)%} +
+

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

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