summaryrefslogtreecommitdiff
path: root/blog/plt
diff options
context:
space:
mode:
Diffstat (limited to 'blog/plt')
-rw-r--r--blog/plt/base.html6
-rw-r--r--blog/plt/index.html12
-rw-r--r--blog/plt/page.html4
-rw-r--r--blog/plt/page_nav.html2
-rw-r--r--blog/plt/rss.xml18
-rw-r--r--blog/plt/sitemap.xml2
-rw-r--r--blog/plt/tag.html6
7 files changed, 25 insertions, 25 deletions
diff --git a/blog/plt/base.html b/blog/plt/base.html
index cbf4e19..3c0e3c9 100644
--- a/blog/plt/base.html
+++ b/blog/plt/base.html
@@ -2,12 +2,12 @@
<html class="theme-dark" lang="{%block html_lang%}{%endblock html_lang%}"
prefix="og: https://ogp.me/ns#">
<head>
- <base href="{{config.static_url}}">
+ <base href="{{config.get("url", "static")}}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
- <title>{%block head_title%}{%endblock head_title%} -- {{config.title}}</title>
+ <title>{%block head_title%}{%endblock head_title%} -- {{config.get("info", "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="alternate" type="application/rss+xml" href="{{config.get("url", "main")}}/rss.xml" title="{{config.get("info", "title")}} RSS">
<link rel="icon" href="images/icons/favicon.ico">
<!-- general style -->
diff --git a/blog/plt/index.html b/blog/plt/index.html
index 5b1c9e1..8616732 100644
--- a/blog/plt/index.html
+++ b/blog/plt/index.html
@@ -3,23 +3,23 @@
{%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:title" content="Index -- {{config.get("info", "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:url" content="{{config.get("url", "main")}}/index.html"/>
+ <meta property="og:image" content="{{config.get("url", "static")}}{{config.get("url", "default_image")}}"/>
<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}}"/>
+ <meta property="og:site_name" content="{{config.get("info", "title")}}"/>
{%endblock head_og%}
{%block content%}
- <h1>Index -- {{config.title}}</h1>
+ <h1>Index -- {{config.get("info", "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="{{config.url}}/rss.xml">{{config.url}}/rss.xml</a>
+ Get the RSS feed: <a target="_blank" href="{{config.get("url", "main")}}/rss.xml">{{config.get("url", "main")}}/rss.xml</a>
</p>
{%import "tag_list.html" as tag_list%}
diff --git a/blog/plt/page.html b/blog/plt/page.html
index 1b0afd9..92aed91 100644
--- a/blog/plt/page.html
+++ b/blog/plt/page.html
@@ -3,13 +3,13 @@
{%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:title" content="{{page.title}} -- {{config.get("info", "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}}"/>
+ <meta property="og:site_name" content="{{config.get("info", "title")}}"/>
{%endblock head_og%}
{%block content%}
<h1>{{page.title}}</h1>
diff --git a/blog/plt/page_nav.html b/blog/plt/page_nav.html
index b15b9eb..4d26ae3 100644
--- a/blog/plt/page_nav.html
+++ b/blog/plt/page_nav.html
@@ -10,7 +10,7 @@
{%endif%}
<span class="index">
- <a href="{{config.url}}" alt="Index">
+ <a href="{{config.get("url", "main")}}" alt="Index">
<i class="fas fa-home" alt="Home"></i>
<span>Index</span>
</a>
diff --git a/blog/plt/rss.xml b/blog/plt/rss.xml
index 5ce541d..3dc7908 100644
--- a/blog/plt/rss.xml
+++ b/blog/plt/rss.xml
@@ -4,24 +4,24 @@
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
- <title>{{config.title}}</title>
- <link>{{config.url}}</link>
- <atom:link href="{{config.url}}/rss.xml" rel="self" type="application/rss+xml"/>
+ <title>{{config.get("info", "title")}}</title>
+ <link>{{config.get("url", "main")}}</link>
+ <atom:link href="{{config.get("url", "main")}}/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>{{config.run_date_rss}}</pubDate>
- <lastBuildDate>{{config.run_date_rss}}</lastBuildDate>
- <generator>pyssg v{{config.version}}</generator>
+ <pubDate>{{config.get("info", "rss_run_date")}}</pubDate>
+ <lastBuildDate>{{config.get("info", "rss_run_date")}}</lastBuildDate>
+ <generator>pyssg v{{config.get("info", "version")}}</generator>
<docs>https://validator.w3.org/feed/docs/rss2.html</docs>
<ttl>30</ttl>
<image>
- <url>{{config.static_url}}/images/blog.png</url>
- <title>{{config.title}}</title>
- <link>{{config.url}}</link>
+ <url>{{config.get("url", "static")}}/images/blog.png</url>
+ <title>{{config.get("info", "title")}}</title>
+ <link>{{config.get("url", "main")}}</link>
</image>
{%for p in all_pages%}
<item>
diff --git a/blog/plt/sitemap.xml b/blog/plt/sitemap.xml
index 26ee5c1..c364f54 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>{{config.run_date_sitemap}}</lastmod>
+ <lastmod>{{config.get("info", "sitemap_run_date")}}</lastmod>
<changefreq>daily</changefreq>
<priority>0.5</priority>
</url>
diff --git a/blog/plt/tag.html b/blog/plt/tag.html
index d379590..5c1b110 100644
--- a/blog/plt/tag.html
+++ b/blog/plt/tag.html
@@ -3,13 +3,13 @@
{%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:title" content="Posts filtered by {{tag[0]}} -- {{config.get("info", "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:image" content="{{config.get("url", "static")}}{{config.get("url", "default_image")}}"/>
<meta property="og:description" content="Posts filtered by {{tag[0]}}."/>
<meta property="og:locale" content="en"/>
- <meta property="og:site_name" content="{{config.title}}"/>
+ <meta property="og:site_name" content="{{config.get("info", "title")}}"/>
{%endblock head_og%}
{%block content%}
<h1>Posts filtered by {{tag[0]}}</h1>