summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:45:26 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2022-04-27 00:45:26 -0600
commitb262292b43e57c7b3534ad8b252a828b53ff49e1 (patch)
tree3e315ab41ec53465eceb8142a513067775221bd1
parent9eee2f99e96320ed15e3f198bdaa86eb1422bbdb (diff)
change to reflect pyssg changes
-rw-r--r--art/config.ini2
-rw-r--r--art/plt/art_nav.html2
-rw-r--r--art/plt/base.html6
-rw-r--r--art/plt/index.html12
-rw-r--r--art/plt/page.html4
-rw-r--r--art/plt/rss.xml18
-rw-r--r--art/plt/sitemap.xml2
-rw-r--r--art/plt/tag.html6
-rw-r--r--art/pyssgrc10
-rw-r--r--art/src/.files10
10 files changed, 28 insertions, 44 deletions
diff --git a/art/config.ini b/art/config.ini
index bfb223d..05d71bd 100644
--- a/art/config.ini
+++ b/art/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 Art
+title=Luévano's Art
[other]
force=False
diff --git a/art/plt/art_nav.html b/art/plt/art_nav.html
index 0b69fb2..327242a 100644
--- a/art/plt/art_nav.html
+++ b/art/plt/art_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/art/plt/base.html b/art/plt/base.html
index 411b410..fe838e1 100644
--- a/art/plt/base.html
+++ b/art/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/art/plt/index.html b/art/plt/index.html
index a283ffc..03bfbc3 100644
--- a/art/plt/index.html
+++ b/art/plt/index.html
@@ -3,23 +3,23 @@
{%block head_title%}Index{%endblock head_title%}
{%block head_description%}My personal space where I post all my drawings, sketches and more art related stuff.{%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 space where I post all my drawings, sketches, and more art related stuff."/>
<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>
Here is where I will post all of my drawings, sketches and more art related stuff. Right now this is managed similar to the <a href="https://blog.luevano.xyz" alt="Luévano's Blog">blog</a>, but more "gallery" oriented. The structure is kind of a 3-level zoom, where you see all the images in this index (or on a tag index), then you see the whole image in its separate link with additional information and then you can see the raw image itself.
</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/art/plt/page.html b/art/plt/page.html
index 55a0c90..536f4d0 100644
--- a/art/plt/page.html
+++ b/art/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/art/plt/rss.xml b/art/plt/rss.xml
index c119daf..60d2807 100644
--- a/art/plt/rss.xml
+++ b/art/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 collection of drawings, sketches and more art related stuff.</description>
<language>en-us</language>
<category>Art</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/a/default.png</url>
- <title>{{config.title}}</title>
- <link>{{config.url}}</link>
+ <url>{{config.get("url", "static")}}{{config.get("url", "default_image")}}</url>
+ <title>{{config.get("info", "title")}}</title>
+ <link>{{config.get("url", "main")}}</link>
</image>
{%for p in all_pages%}
<item>
diff --git a/art/plt/sitemap.xml b/art/plt/sitemap.xml
index 26ee5c1..c364f54 100644
--- a/art/plt/sitemap.xml
+++ b/art/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/art/plt/tag.html b/art/plt/tag.html
index f3d5999..e5f2152 100644
--- a/art/plt/tag.html
+++ b/art/plt/tag.html
@@ -3,13 +3,13 @@
{%block head_title%}Art filtered by {{tag[0]}}{%endblock head_title%}
{%block head_description%}Art filtered by {{tag[0]}}{%endblock head_description%}
{%block head_og%}
- <meta property="og:title" content="Art filtered by {{tag[0]}} -- {{config.title}}"/>
+ <meta property="og:title" content="Art 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="Art 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>Art filtered by {{tag[0]}}</h1>
diff --git a/art/pyssgrc b/art/pyssgrc
deleted file mode 100644
index 61d14d7..0000000
--- a/art/pyssgrc
+++ /dev/null
@@ -1,10 +0,0 @@
-SRC=src
-DST=dst
-PLT=plt
-URL=https://art.luevano.xyz
-STATIC_URL=https://static.luevano.xyz
-DEFAULT_IMAGE_URL=/images/a/default.png
-TITLE=Luévano's Art
-DATE_FORMAT=%a, %b %d, %Y @ %H:%M %Z
-LIST_DATE_FORMAT=%b %d
-LIST_SEP_DATE_FORMAT=%B %Y
diff --git a/art/src/.files b/art/src/.files
index 975280e..ff6c61e 100644
--- a/art/src/.files
+++ b/art/src/.files
@@ -1,8 +1,2 @@
-a/test1.md 1622992153.6939147 0.0 digital,drawing,english
-a/test3.md 1622992264.1187086 0.0 digital,drawing,spanish
-a/test6.md 1622992329.1495857 0.0 digital,drawing,spanish
-a/test5.md 1622992310.7793367 0.0 digital,drawing,spanish
-a/test2.md 1622992244.2984438 0.0 digital,drawing,spanish
-a/test4.md 1622992285.0989902 0.0 digital,drawing,spanish
-a/elephant_octopus.md 1623005755.256314 0.0 black-white,digital,drawing,spanish
-a/hand_sketches.md 1623426397.9283822 0.0 black-white,digital,sketch,spanish
+a/elephant_octopus.md 1623005755.256314 0.0 8302ac3b0dd5854a765af354b1cb8d3f black-white,digital,drawing,spanish
+a/hand_sketches.md 1623426397.9283822 0.0 371402a56b208613c1085e5bd956f90f black-white,digital,sketch,spanish