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 --- .rsyncignore | 1 + 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 +++ blog/.gitignore | 2 - blog/dst/a/asi_nomas_esta_quedando.html | 6 +- blog/dst/a/el_blog_ya_tiene_timestamps.html | 6 +- blog/dst/a/first_blog_post.html | 6 +- blog/dst/a/git_server_with_cgit.html | 6 +- blog/dst/a/linux_video_notes.html | 6 +- blog/dst/a/mail_server_with_postfix.html | 12 ++-- blog/dst/a/new_blogging_system.html | 6 +- blog/dst/a/shell_scripting_video_notes.html | 6 +- blog/dst/a/sql_video_notes.html | 18 +++-- blog/dst/a/website_with_nginx.html | 12 ++-- blog/dst/index.html | 6 +- blog/dst/rss.xml | 23 ++++--- blog/dst/sitemap.xml | 22 +++--- blog/dst/tag/@english.html | 6 +- blog/dst/tag/@notes.html | 6 +- blog/dst/tag/@server.html | 6 +- blog/dst/tag/@short.html | 6 +- blog/dst/tag/@spanish.html | 6 +- blog/dst/tag/@tools.html | 6 +- blog/dst/tag/@tutorial.html | 6 +- blog/dst/tag/@update.html | 6 +- blog/plt/base.html | 6 +- blog/plt/rss.xml | 1 + blog/src/.files | 6 +- blog/src/a/mail_server_with_postfix.md | 4 +- blog/src/a/sql_video_notes.md | 10 +-- blog/src/a/website_with_nginx.md | 4 +- luevano/404.html | 5 ++ luevano/contact.html | 19 ++++- luevano/donate.html | 53 ++++++++++---- luevano/index.html | 52 +++++++++++--- luevano/sitemap-index.xml | 8 ++- luevano/sitemap.xml | 16 +++-- static/images/crypto/monero.png | Bin 0 -> 7547 bytes 44 files changed, 537 insertions(+), 101 deletions(-) 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 delete mode 100644 blog/.gitignore create mode 100644 static/images/crypto/monero.png diff --git a/.rsyncignore b/.rsyncignore index 0ea4661..b45e758 100644 --- a/.rsyncignore +++ b/.rsyncignore @@ -8,4 +8,5 @@ LICENSE # Rsync specific .rsyncignore blog/ +art/ gendata/ 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%} diff --git a/blog/.gitignore b/blog/.gitignore deleted file mode 100644 index 741a103..0000000 --- a/blog/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -# Only keep track of source. -# dst/ diff --git a/blog/dst/a/asi_nomas_esta_quedando.html b/blog/dst/a/asi_nomas_esta_quedando.html index c966291..d8cdfc0 100644 --- a/blog/dst/a/asi_nomas_esta_quedando.html +++ b/blog/dst/a/asi_nomas_esta_quedando.html @@ -1,6 +1,6 @@ + prefix="og: https://ogp.me/ns#"> @@ -46,6 +46,10 @@ Blog +
  • + Art +
  • +
  • Git