From 8aed7291d95070d8dbb8ce322de4108918c0f8f1 Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Sat, 5 Jun 2021 03:56:24 -0600 Subject: add og support --- blog/plt/base.html | 13 +++++++++---- blog/plt/index.html | 14 ++++++++++++-- blog/plt/page.html | 10 ++++++++++ blog/plt/rss.xml | 18 +++++++++--------- blog/plt/sitemap.xml | 2 +- blog/plt/tag.html | 10 ++++++++++ 6 files changed, 51 insertions(+), 16 deletions(-) (limited to 'blog/plt') diff --git a/blog/plt/base.html b/blog/plt/base.html index 3350593..6c56ac4 100644 --- a/blog/plt/base.html +++ b/blog/plt/base.html @@ -1,11 +1,13 @@ - + - + - {%block head_title%}{%endblock head_title%} -- {{site_title}} - + {%block head_title%}{%endblock head_title%} -- {{config.title}} + + @@ -21,6 +23,9 @@ + + + {%block head_og%}{%endblock head_og%} diff --git a/blog/plt/index.html b/blog/plt/index.html index 189c7fe..5b1c9e1 100644 --- a/blog/plt/index.html +++ b/blog/plt/index.html @@ -1,15 +1,25 @@ {%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 -- {{site_title}}

+

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: {{site_base_url}}/rss.xml + Get the RSS feed: {{config.url}}/rss.xml

{%import "tag_list.html" as tag_list%} diff --git a/blog/plt/page.html b/blog/plt/page.html index 6128d3b..dbb2734 100644 --- a/blog/plt/page.html +++ b/blog/plt/page.html @@ -1,6 +1,16 @@ {%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}}

diff --git a/blog/plt/rss.xml b/blog/plt/rss.xml index 5e06c36..5be7c37 100644 --- a/blog/plt/rss.xml +++ b/blog/plt/rss.xml @@ -3,24 +3,24 @@ xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"> - {{site_title}} - {{site_base_url}} - + {{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) - {{run_date}} - {{run_date}} - pyssg v{{pyssg_version}} + {{config.run_date_rss}} + {{config.run_date_rss}} + pyssg v{{config.version}} https://validator.w3.org/feed/docs/rss2.html 30 - {{site_base_static_url}}/images/blog.png - {{site_title}} - {{site_base_url}} + {{config.static_url}}/images/blog.png + {{config.title}} + {{config.url}} {%for p in all_pages%} diff --git a/blog/plt/sitemap.xml b/blog/plt/sitemap.xml index a5b5404..26ee5c1 100644 --- a/blog/plt/sitemap.xml +++ b/blog/plt/sitemap.xml @@ -14,7 +14,7 @@ {%for t in all_tags%} {{t[1]}} - {{run_date}} + {{config.run_date_sitemap}} daily 0.5 diff --git a/blog/plt/tag.html b/blog/plt/tag.html index 2203f33..d379590 100644 --- a/blog/plt/tag.html +++ b/blog/plt/tag.html @@ -1,6 +1,16 @@ {%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]}}

-- cgit v1.2.3-70-g09d2