diff options
Diffstat (limited to 'src/pyssg/plt')
-rw-r--r-- | src/pyssg/plt/index.html | 6 | ||||
-rw-r--r-- | src/pyssg/plt/page.html | 4 | ||||
-rw-r--r-- | src/pyssg/plt/rss.xml | 18 | ||||
-rw-r--r-- | src/pyssg/plt/sitemap.xml | 2 | ||||
-rw-r--r-- | src/pyssg/plt/tag.html | 4 |
5 files changed, 17 insertions, 17 deletions
diff --git a/src/pyssg/plt/index.html b/src/pyssg/plt/index.html index 09ca786..d061625 100644 --- a/src/pyssg/plt/index.html +++ b/src/pyssg/plt/index.html @@ -2,11 +2,11 @@ <html lang="en"> <head> <meta charset="utf-8"> - <base href="{{config.get('url', 'static')}}"> - <title>Index -- {{config.get('info', 'title')}}</title> + <base href="{{config['url']['static']}}"> + <title>Index -- {{config['info']['title']}}</title> </head> <body> - <h1>Index -- {{config.get('info', 'title')}}</h1> + <h1>Index -- {{config['info']['title']}}</h1> <p>Some text here.</p> <p>Tags: diff --git a/src/pyssg/plt/page.html b/src/pyssg/plt/page.html index 15663fa..39101c4 100644 --- a/src/pyssg/plt/page.html +++ b/src/pyssg/plt/page.html @@ -2,8 +2,8 @@ <html lang="{{page.lang}}"> <head> <meta charset="utf-8"> - <base href="{{config.get('url', 'static')}}"> - <title>{{page.title}} -- {{config.get('info', 'title')}}</title> + <base href="{{config['url']['static']}}"> + <title>{{page.title}} -- {{config['info']['title']}}</title> </head> <body> <h1>{{page.title}}</h1> diff --git a/src/pyssg/plt/rss.xml b/src/pyssg/plt/rss.xml index be6ddf0..31abd48 100644 --- a/src/pyssg/plt/rss.xml +++ b/src/pyssg/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>{{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"/> + <title>{{config['info']['title']}}</title> + <link>{{config['url']['main']}}</link> + <atom:link href="{{config['url']['main']}}/rss.xml" rel="self" type="application/rss+xml"/> <description>Short site description.</description> <language>en-us</language> <category>Blog</category> <copyright>Copyright 2021 Somebody</copyright> <managingEditor>some@one.com (Sombody)</managingEditor> <webMaster>some@one.com (Sombody)</webMaster> - <pubDate>{{config.get('info', 'rss_run_date')}}</pubDate> - <lastBuildDate>{{config.get('info', 'rss_run_date')}}</lastBuildDate> - <generator>pyssg v{{config.get('info', 'version')}}</generator> + <pubDate>{{config['info']['rss_run_date']}}</pubDate> + <lastBuildDate>{{config['info']['rss_run_date']}}</lastBuildDate> + <generator>pyssg v{{config['info']['version']}}</generator> <docs>https://validator.w3.org/feed/docs/rss2.html</docs> <ttl>30</ttl> <image> - <url>{{config.get('url', 'static')}}/images/blog.png</url> - <title>{{config.get('info', 'title')}}</title> - <link>{{config.get('url', 'main')}}</link> + <url>{{config['url']['static']}}/images/blog.png</url> + <title>{{config['info']['title']}}</title> + <link>{{config['url']['main']}}</link> </image> {%for p in all_pages%} <item> diff --git a/src/pyssg/plt/sitemap.xml b/src/pyssg/plt/sitemap.xml index af1212a..d9ff21b 100644 --- a/src/pyssg/plt/sitemap.xml +++ b/src/pyssg/plt/sitemap.xml @@ -14,7 +14,7 @@ {%for t in all_tags%} <url> <loc>{{t[1]}}</loc> - <lastmod>{{config.get('info', 'sitemap_run_date')}}</lastmod> + <lastmod>{{config['info']['sitemap_run_date']}}</lastmod> <changefreq>daily</changefreq> <priority>0.5</priority> </url> diff --git a/src/pyssg/plt/tag.html b/src/pyssg/plt/tag.html index ffd1956..eadfb95 100644 --- a/src/pyssg/plt/tag.html +++ b/src/pyssg/plt/tag.html @@ -2,8 +2,8 @@ <html lang="en"> <head> <meta charset="utf-8"> - <base href="{{config.get('url', 'static')}}"> - <title>Posts filtered by {{tag[0]}} -- {{config.get('info', 'title')}}</title> + <base href="{{config['url']['static']}}"> + <title>Posts filtered by {{tag[0]}} -- {{config['info']['title']}}</title> </head> <body> <h1>Posts filtered by {{tag[0]}}</h1> |