summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:28:44 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:28:44 -0600
commite065a0f8406c144d5a15c1268ea31a2e69190e7c (patch)
tree1b27b5aab3c75ff52d2224a01c6c378520136eb1
parente1bcbb991be9a5e952c63a5328898b446efd7fd3 (diff)
final changes for pyssg update
-rw-r--r--blog/config.ini2
-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
8 files changed, 26 insertions, 26 deletions
diff --git a/blog/config.ini b/blog/config.ini
index 6057e85..ddf2304 100644
--- a/blog/config.ini
+++ b/blog/config.ini
@@ -12,6 +12,6 @@ date=%%a, %%b %%d, %%Y @ %%H:%%M %%Z
list_date=%%b %%d
list_sep_date=%%B %%Y
[info]
-title=Luevano's Blog
+title=Luévano's Blog
[other]
force=False
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>