From 0e91926ff40b3df1914375165633bb703c176558 Mon Sep 17 00:00:00 2001
From: David Luevano Alvarado
Date: Sat, 5 Jun 2021 01:21:59 -0600
Subject: simplify templates
---
blog/dst/a/asi_nomas_esta_quedando.html | 12 +++++-------
blog/dst/a/el_blog_ya_tiene_timestamps.html | 13 +++++--------
blog/dst/a/first_blog_post.html | 13 +++++--------
blog/dst/a/git_server_with_cgit.html | 13 +++++--------
blog/dst/a/linux_video_notes.html | 11 +++++------
blog/dst/a/mail_server_with_postfix.html | 13 +++++--------
blog/dst/a/new_blogging_system.html | 13 +++++--------
blog/dst/a/shell_scripting_video_notes.html | 11 +++++------
blog/dst/a/sql_video_notes.html | 11 +++++------
blog/dst/a/website_with_nginx.html | 13 +++++--------
blog/dst/index.html | 23 +++++++++--------------
blog/dst/rss.xml | 4 ++--
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 | 14 ++------------
blog/plt/index.html | 27 +++++++--------------------
blog/plt/page.html | 11 ++++-------
blog/plt/page_list.html | 15 +++++++++++++++
blog/plt/tag.html | 18 +++++-------------
blog/plt/tag_list.html | 9 +++++++++
26 files changed, 135 insertions(+), 157 deletions(-)
create mode 100644 blog/plt/page_list.html
create mode 100644 blog/plt/tag_list.html
(limited to 'blog')
diff --git a/blog/dst/a/asi_nomas_esta_quedando.html b/blog/dst/a/asi_nomas_esta_quedando.html
index ca7c670..e5d5724 100644
--- a/blog/dst/a/asi_nomas_esta_quedando.html
+++ b/blog/dst/a/asi_nomas_esta_quedando.html
@@ -4,7 +4,7 @@
- Así nomás está quedando el página -- Luévano's Blog
+ Así nomás está quedando el página -- Luévano's Blog
@@ -77,12 +77,10 @@
By David Luévano
Created: Fri, Jun 04, 2021 @ 08:24 UTC
+ Tags:
+short , spanish , update
+
+
diff --git a/blog/dst/a/el_blog_ya_tiene_timestamps.html b/blog/dst/a/el_blog_ya_tiene_timestamps.html
index b4d6882..a086f3e 100644
--- a/blog/dst/a/el_blog_ya_tiene_timestamps.html
+++ b/blog/dst/a/el_blog_ya_tiene_timestamps.html
@@ -4,7 +4,7 @@
- Así es raza, el blog ya tiene timestamps -- Luévano's Blog
+ Así es raza, el blog ya tiene timestamps -- Luévano's Blog
@@ -77,13 +77,10 @@
Created: Tue, Mar 16, 2021 @ 02:46 UTC
Modified: Mon, May 17, 2021 @ 20:53 UTC
+ Tags:
+short , spanish , tools , update
+
+
diff --git a/blog/dst/a/first_blog_post.html b/blog/dst/a/first_blog_post.html
index 2e35fc3..6bc7f8c 100644
--- a/blog/dst/a/first_blog_post.html
+++ b/blog/dst/a/first_blog_post.html
@@ -4,7 +4,7 @@
- This is the first blog post, just for testing purposes -- Luévano's Blog
+ This is the first blog post, just for testing purposes -- Luévano's Blog
@@ -76,13 +76,10 @@
Created: Sat, Feb 27, 2021 @ 13:08 UTC
Modified: Mon, May 17, 2021 @ 20:53 UTC
+ Tags:
+english , short , tools , update
+
+
diff --git a/blog/dst/a/git_server_with_cgit.html b/blog/dst/a/git_server_with_cgit.html
index 81dde47..0813c84 100644
--- a/blog/dst/a/git_server_with_cgit.html
+++ b/blog/dst/a/git_server_with_cgit.html
@@ -4,7 +4,7 @@
- Create a git server and setup cgit web app (on Nginx) -- Luévano's Blog
+ Create a git server and setup cgit web app (on Nginx) -- Luévano's Blog
@@ -180,13 +180,10 @@ repo.desc=These are my personal dotfiles.
Created: Sun, Mar 21, 2021 @ 19:00 UTC
Modified: Fri, Jun 04, 2021 @ 07:59 UTC
+ Tags:
+english , server , tools , tutorial
+
+
diff --git a/blog/dst/a/linux_video_notes.html b/blog/dst/a/linux_video_notes.html
index c95cc00..1e84720 100644
--- a/blog/dst/a/linux_video_notes.html
+++ b/blog/dst/a/linux_video_notes.html
@@ -4,7 +4,7 @@
- Linux tutorial video notes -- Luévano's Blog
+ Linux tutorial video notes -- Luévano's Blog
@@ -149,11 +149,10 @@
Created: Sun, Mar 14, 2021 @ 05:57 UTC
Modified: Fri, Jun 04, 2021 @ 07:59 UTC
+ Tags:
+english , notes
+
+
diff --git a/blog/dst/a/mail_server_with_postfix.html b/blog/dst/a/mail_server_with_postfix.html
index 190c4a5..972045b 100644
--- a/blog/dst/a/mail_server_with_postfix.html
+++ b/blog/dst/a/mail_server_with_postfix.html
@@ -4,7 +4,7 @@
- Create a mail server with Postfix, Dovecot, SpamAssassin and OpenDKIM -- Luévano's Blog
+ Create a mail server with Postfix, Dovecot, SpamAssassin and OpenDKIM -- Luévano's Blog
@@ -435,13 +435,10 @@ systemctl enable spamassassin.service
Created: Sun, Mar 21, 2021 @ 04:05 UTC
Modified: Fri, Jun 04, 2021 @ 07:59 UTC
+ Tags:
+english , server , tools , tutorial
+
+
diff --git a/blog/dst/a/new_blogging_system.html b/blog/dst/a/new_blogging_system.html
index 5ad639e..8978d26 100644
--- a/blog/dst/a/new_blogging_system.html
+++ b/blog/dst/a/new_blogging_system.html
@@ -4,7 +4,7 @@
- I'm using a new blogging system -- Luévano's Blog
+ I'm using a new blogging system -- Luévano's Blog
@@ -79,13 +79,10 @@
Created: Fri, May 28, 2021 @ 03:21 UTC
Modified: Fri, May 28, 2021 @ 03:42 UTC
+ Tags:
+english , short , tools , update
+
+
diff --git a/blog/dst/a/shell_scripting_video_notes.html b/blog/dst/a/shell_scripting_video_notes.html
index d2ac546..49e9c92 100644
--- a/blog/dst/a/shell_scripting_video_notes.html
+++ b/blog/dst/a/shell_scripting_video_notes.html
@@ -4,7 +4,7 @@
- Shell scripting tutorial video notes -- Luévano's Blog
+ Shell scripting tutorial video notes -- Luévano's Blog
@@ -274,11 +274,10 @@ function_name () {
Created: Sun, Mar 14, 2021 @ 05:57 UTC
Modified: Fri, Jun 04, 2021 @ 08:00 UTC
+ Tags:
+english , notes
+
+
diff --git a/blog/dst/a/sql_video_notes.html b/blog/dst/a/sql_video_notes.html
index ae5c5c3..b64f858 100644
--- a/blog/dst/a/sql_video_notes.html
+++ b/blog/dst/a/sql_video_notes.html
@@ -4,7 +4,7 @@
- SQL tutorial video notes -- Luévano's Blog
+ SQL tutorial video notes -- Luévano's Blog
@@ -209,11 +209,10 @@
Created: Tue, Mar 02, 2021 @ 14:35 UTC
Modified: Fri, Jun 04, 2021 @ 08:00 UTC
+ Tags:
+english , notes
+
+
diff --git a/blog/dst/a/website_with_nginx.html b/blog/dst/a/website_with_nginx.html
index 13d9ec6..c18db5e 100644
--- a/blog/dst/a/website_with_nginx.html
+++ b/blog/dst/a/website_with_nginx.html
@@ -4,7 +4,7 @@
- Create a website with Nginx and Certbot -- Luévano's Blog
+ Create a website with Nginx and Certbot -- Luévano's Blog
@@ -185,13 +185,10 @@ systemctl restart nginx
Created: Fri, Mar 19, 2021 @ 02:58 UTC
Modified: Fri, Jun 04, 2021 @ 08:00 UTC
+ Tags:
+english , server , tools , tutorial
+
+
diff --git a/blog/dst/index.html b/blog/dst/index.html
index ea7422d..3fd19c3 100644
--- a/blog/dst/index.html
+++ b/blog/dst/index.html
@@ -4,7 +4,7 @@
- Index -- Luévano's Blog
+ Index -- Luévano's Blog
@@ -75,19 +75,12 @@
-
- Articles
+ Tags:
+english , notes , server , short , spanish , tools , tutorial , update
+
+
+
+ Articles
+
+
diff --git a/blog/dst/rss.xml b/blog/dst/rss.xml
index 42f992a..125e8f7 100644
--- a/blog/dst/rss.xml
+++ b/blog/dst/rss.xml
@@ -12,8 +12,8 @@
Copyright 2021 David Luévano Alvarado
david@luevano.xyz (David Luévano Alvarado)
david@luevano.xyz (David Luévano Alvarado)
- Sat, 05 Jun 2021 05:50:01 GMT
- Sat, 05 Jun 2021 05:50:01 GMT
+ Sat, 05 Jun 2021 06:57:06 GMT
+ Sat, 05 Jun 2021 06:57:06 GMT
pyssg v0.5.2
https://validator.w3.org/feed/docs/rss2.html
30
diff --git a/blog/dst/tag/@english.html b/blog/dst/tag/@english.html
index fc7ad61..66ab1fb 100644
--- a/blog/dst/tag/@english.html
+++ b/blog/dst/tag/@english.html
@@ -4,7 +4,7 @@
- Posts filtered by english -- Luévano's Blog
+ Posts filtered by english -- Luévano's Blog
@@ -66,7 +66,7 @@
Posts filtered by english
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@notes.html b/blog/dst/tag/@notes.html
index dce1b36..2efe2df 100644
--- a/blog/dst/tag/@notes.html
+++ b/blog/dst/tag/@notes.html
@@ -4,7 +4,7 @@
- Posts filtered by notes -- Luévano's Blog
+ Posts filtered by notes -- Luévano's Blog
@@ -66,13 +66,15 @@
Posts filtered by notes
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@server.html b/blog/dst/tag/@server.html
index dc4fa23..d0a78fe 100644
--- a/blog/dst/tag/@server.html
+++ b/blog/dst/tag/@server.html
@@ -4,7 +4,7 @@
- Posts filtered by server -- Luévano's Blog
+ Posts filtered by server -- Luévano's Blog
@@ -66,13 +66,15 @@
Posts filtered by server
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@short.html b/blog/dst/tag/@short.html
index 77239a4..24f2ab5 100644
--- a/blog/dst/tag/@short.html
+++ b/blog/dst/tag/@short.html
@@ -4,7 +4,7 @@
- Posts filtered by short -- Luévano's Blog
+ Posts filtered by short -- Luévano's Blog
@@ -66,7 +66,7 @@
Posts filtered by short
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@spanish.html b/blog/dst/tag/@spanish.html
index 7903589..89a71cf 100644
--- a/blog/dst/tag/@spanish.html
+++ b/blog/dst/tag/@spanish.html
@@ -4,7 +4,7 @@
- Posts filtered by spanish -- Luévano's Blog
+ Posts filtered by spanish -- Luévano's Blog
@@ -66,13 +66,15 @@
Posts filtered by spanish
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@tools.html b/blog/dst/tag/@tools.html
index 54b04d6..05d6a09 100644
--- a/blog/dst/tag/@tools.html
+++ b/blog/dst/tag/@tools.html
@@ -4,7 +4,7 @@
- Posts filtered by tools -- Luévano's Blog
+ Posts filtered by tools -- Luévano's Blog
@@ -66,7 +66,7 @@
Posts filtered by tools
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@tutorial.html b/blog/dst/tag/@tutorial.html
index a7dc63d..4472df0 100644
--- a/blog/dst/tag/@tutorial.html
+++ b/blog/dst/tag/@tutorial.html
@@ -4,7 +4,7 @@
- Posts filtered by tutorial -- Luévano's Blog
+ Posts filtered by tutorial -- Luévano's Blog
@@ -66,13 +66,15 @@
Posts filtered by tutorial
- Articles
+ Articles
+
+
diff --git a/blog/dst/tag/@update.html b/blog/dst/tag/@update.html
index 6fab424..eac2a1c 100644
--- a/blog/dst/tag/@update.html
+++ b/blog/dst/tag/@update.html
@@ -4,7 +4,7 @@
- Posts filtered by update -- Luévano's Blog
+ Posts filtered by update -- Luévano's Blog
@@ -66,7 +66,7 @@
Posts filtered by update
- Articles
+ Articles
+
+
diff --git a/blog/plt/base.html b/blog/plt/base.html
index 9919829..3350593 100644
--- a/blog/plt/base.html
+++ b/blog/plt/base.html
@@ -1,20 +1,10 @@
-{%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 head_title%}{%endblock head_title%} -- {{site_title}}
diff --git a/blog/plt/index.html b/blog/plt/index.html
index 7efcf20..189c7fe 100644
--- a/blog/plt/index.html
+++ b/blog/plt/index.html
@@ -1,4 +1,6 @@
{%extends "base.html"%}
+{%block html_lang%}en{%endblock html_lang%}
+{%block head_title%}Index{%endblock head_title%}
{%block content%}
Index -- {{site_title}}
@@ -10,25 +12,10 @@
Get the RSS feed: {{site_base_url}}/rss.xml
-
-
Tags:
- {%for t in all_tags%}
- {{t[0]}} {{", " if not loop.last else ""}}
- {%endfor%}
-
-
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(all_tags)}}
+
+ {%import "page_list.html" as page_list%}
+ {{page_list.print(all_pages)}}
- Articles
-
- {%for p in all_pages%}
- {%if loop.previtem%}
- {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
- {{p.cdate_list_sep}}
- {%endif%}
- {%else%}
- {{p.cdate_list_sep}}
- {%endif%}
- {{p.cdate_list}} - {{p.title}}
- {%endfor%}
-
{%endblock content%}
diff --git a/blog/plt/page.html b/blog/plt/page.html
index a98338e..6128d3b 100644
--- a/blog/plt/page.html
+++ b/blog/plt/page.html
@@ -1,4 +1,6 @@
{%extends "base.html"%}
+{%block html_lang%}{{page.lang}}{%endblock html_lang%}
+{%block head_title%}{{page.title}}{%endblock head_title%}
{%block content%}
{{page.title}}
@@ -11,12 +13,7 @@
{%if page.mdate is not none%}
Modified: {{page.mdate}}
{%endif%}
-
-
Tags:
- {%for t in page.tags%}
- {{t[0]}} {{", " if not loop.last else ""}}
- {%endfor%}
-
-
+ {%import "tag_list.html" as tag_list%}
+ {{tag_list.print(page.tags)}}
{%endblock content%}
diff --git a/blog/plt/page_list.html b/blog/plt/page_list.html
new file mode 100644
index 0000000..16dc4d5
--- /dev/null
+++ b/blog/plt/page_list.html
@@ -0,0 +1,15 @@
+{%macro print(pages)%}
+ Articles
+
+ {%for p in pages%}
+ {%if loop.previtem%}
+ {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
+ {{p.cdate_list_sep}}
+ {%endif%}
+ {%else%}
+ {{p.cdate_list_sep}}
+ {%endif%}
+ {{p.cdate_list}} - {{p.title}}
+ {%endfor%}
+
+{%endmacro%}
diff --git a/blog/plt/tag.html b/blog/plt/tag.html
index 50b221f..2203f33 100644
--- a/blog/plt/tag.html
+++ b/blog/plt/tag.html
@@ -1,18 +1,10 @@
{%extends "base.html"%}
+{%block html_lang%}en{%endblock html_lang%}
+{%block head_title%}Posts filtered by {{tag[0]}}{%endblock head_title%}
{%block content%}
Posts filtered by {{tag[0]}}
- Articles
-
- {%for p in tag_pages%}
- {%if loop.previtem%}
- {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
- {{p.cdate_list_sep}}
- {%endif%}
- {%else%}
- {{p.cdate_list_sep}}
- {%endif%}
- {{p.cdate_list}} - {{p.title}}
- {%endfor%}
-
+ {%import "page_list.html" as page_list%}
+ {{page_list.print(tag_pages)}}
+
{%endblock content%}
diff --git a/blog/plt/tag_list.html b/blog/plt/tag_list.html
new file mode 100644
index 0000000..2dfb70c
--- /dev/null
+++ b/blog/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