summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/base.html13
-rw-r--r--blog/plt/index.html14
-rw-r--r--blog/plt/page.html10
-rw-r--r--blog/plt/rss.xml18
-rw-r--r--blog/plt/sitemap.xml2
-rw-r--r--blog/plt/tag.html10
6 files changed, 51 insertions, 16 deletions
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 @@
<!DOCTYPE html>
-<html lang="{%block html_lang%}{%endblock html_lang%}">
+<html lang="{%block html_lang%}{%endblock html_lang%}"
+ prefix="og: https://ogp.me/ns#">
<head>
- <base href="{{site_base_static_url}}">
+ <base href="{{config.static_url}}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{%block head_title%}{%endblock head_title%} -- {{site_title}}</title>
- <link rel="alternate" type="application/rss+xml" href="{{site_base_url}}/rss.xml" title="{{site_title}} RSS">
+ <title>{%block head_title%}{%endblock head_title%} -- {{config.title}}</title>
+ <meta name="description" content"{%block head_description%}{%endblock head_description%}"/>
+ <link rel="alternate" type="application/rss+xml" href="{{config.url}}/rss.xml" title="{{config.title}} RSS">
<link rel="icon" href="images/icons/favicon.ico">
<!-- general style -->
@@ -21,6 +23,9 @@
<script type="text/javascript" src="scripts/theme.js"></script>
<link id="theme-css" rel="stylesheet" type="text/css" href="css/dark.css">
<link id="code-theme-css" rel="stylesheet" type="text/css" href="hl/styles/solarized-dark.min.css">
+
+ <!-- og meta -->
+ {%block head_og%}{%endblock head_og%}
</head>
<body>
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%}
+ <meta property="og:title" content="Index -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config.url}}/index.html"/>
+ <meta property="og:image" content="{{config.static_url}}{{config.default_image_url}}"/>
+ <meta property="og:description" content="My personal blog where I post about my thoughts, some how-to's, or general ranting."/>
+ <meta property="og:locale" content="en"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
{%block content%}
- <h1>Index -- {{site_title}}</h1>
+ <h1>Index -- {{config.title}}</h1>
<p>
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).
</p>
<p>
- Get the RSS feed: <a target="_blank" href="{{site_base_url}}/rss.xml">{{site_base_url}}/rss.xml</a>
+ Get the RSS feed: <a target="_blank" href="{{config.url}}/rss.xml">{{config.url}}/rss.xml</a>
</p>
{%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%}
+ <meta property="og:title" content="{{page.title}} -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{page.url}}"/>
+ <meta property="og:image" content="{{page.image_url}}"/>
+ <meta property="og:description" content="{{page.summary}}"/>
+ <meta property="og:locale" content="{{page.lang}}"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
{%block content%}
<h1>{{page.title}}</h1>
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/">
<channel>
- <title>{{site_title}}</title>
- <link>{{site_base_url}}</link>
- <atom:link href="{{site_base_url}}/rss.xml" rel="self" type="application/rss+xml"/>
+ <title>{{config.title}}</title>
+ <link>{{config.url}}</link>
+ <atom:link href="{{config.url}}/rss.xml" rel="self" type="application/rss+xml"/>
<description>A personal weblog ranging from rants to how to's and other thoughts.</description>
<language>en-us</language>
<category>Blog</category>
<copyright>Copyright 2021 David Luévano Alvarado</copyright>
<managingEditor>david@luevano.xyz (David Luévano Alvarado)</managingEditor>
<webMaster>david@luevano.xyz (David Luévano Alvarado)</webMaster>
- <pubDate>{{run_date}}</pubDate>
- <lastBuildDate>{{run_date}}</lastBuildDate>
- <generator>pyssg v{{pyssg_version}}</generator>
+ <pubDate>{{config.run_date_rss}}</pubDate>
+ <lastBuildDate>{{config.run_date_rss}}</lastBuildDate>
+ <generator>pyssg v{{config.version}}</generator>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<ttl>30</ttl>
<image>
- <url>{{site_base_static_url}}/images/blog.png</url>
- <title>{{site_title}}</title>
- <link>{{site_base_url}}</link>
+ <url>{{config.static_url}}/images/blog.png</url>
+ <title>{{config.title}}</title>
+ <link>{{config.url}}</link>
</image>
{%for p in all_pages%}
<item>
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%}
<url>
<loc>{{t[1]}}</loc>
- <lastmod>{{run_date}}</lastmod>
+ <lastmod>{{config.run_date_sitemap}}</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
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%}
+ <meta property="og:title" content="Posts filtered by {{tag[0]}} -- {{config.title}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{tag[1]}}"/>
+ <meta property="og:image" content="{{config.static_url}}{{config.default_image_url}}"/>
+ <meta property="og:description" content="Posts filtered by {{tag[0]}}."/>
+ <meta property="og:locale" content="en"/>
+ <meta property="og:site_name" content="{{config.title}}"/>
+{%endblock head_og%}
{%block content%}
<h1>Posts filtered by {{tag[0]}}</h1>