summaryrefslogtreecommitdiff
path: root/pyssg.xyz/plt/blog
diff options
context:
space:
mode:
Diffstat (limited to 'pyssg.xyz/plt/blog')
-rw-r--r--pyssg.xyz/plt/blog/index.html101
-rw-r--r--pyssg.xyz/plt/blog/page.html87
-rw-r--r--pyssg.xyz/plt/blog/tag.html89
3 files changed, 197 insertions, 80 deletions
diff --git a/pyssg.xyz/plt/blog/index.html b/pyssg.xyz/plt/blog/index.html
index 96d66ef..9086232 100644
--- a/pyssg.xyz/plt/blog/index.html
+++ b/pyssg.xyz/plt/blog/index.html
@@ -1,32 +1,71 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <base href="{{config['url']['static']}}">
- <title>Index -- {{config['title']}}</title>
- </head>
- <body>
- <h1>Index -- {{config['title']}}</h1>
- <p>Some text here.</p>
-
- <p>Tags:
- {%for t in all_tags%}
- <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
- {%endfor%}
- </p>
-
- <h2>Articles</h2>
- <ul>
- {%for p in all_pages%}
- {%if loop.previtem%}
- {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
- <h3>{{p.cdate_list_sep}}</h3>
- {%endif%}
- {%else%}
- <h3>{{p.cdate_list_sep}}</h3>
+{%extends "base.html"%}
+
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>Index -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+<meta name="description" content="{{config['description']}}"/>
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_extra%}
+{%endblock head_extra%}
+
+{%block head_og%}
+ <meta property="og:title" content="{{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config['url']['main']}}/index.html"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="{{config['description']}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+<h1>Index -- {{config['title']}}</h1>
+<p>Some text here.</p>
+
+<p>Tags:
+{%for t in all_tags%}
+ <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
+{%endfor%}
+</p>
+
+<h2>Articles</h2>
+<ul>
+{%for p in all_pages%}
+ {%if loop.previtem%}
+ {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
+ <h3>{{p.cdate_list_sep}}</h3>
{%endif%}
- <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
- {%endfor%}
- </ul>
- </body>
-</html>
+ {%else%}
+ <h3>{{p.cdate_list_sep}}</h3>
+ {%endif%}
+ <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
+{%endfor%}
+</ul>
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file
diff --git a/pyssg.xyz/plt/blog/page.html b/pyssg.xyz/plt/blog/page.html
index d7f5e43..bd79b15 100644
--- a/pyssg.xyz/plt/blog/page.html
+++ b/pyssg.xyz/plt/blog/page.html
@@ -1,25 +1,64 @@
-<!DOCTYPE html>
-<html lang="{{page.lang}}">
- <head>
- <meta charset="utf-8">
- <base href="{{config['url']['static']}}">
- <title>{{page.title}} -- {{config['title']}}</title>
- </head>
- <body>
- <h1>{{page.title}}</h1>
- <p>By {{page.author}}</p>
- <p>Created: {{page.cdate}}</p>
- {%if page.mdate is not none%}
- <p>Modified: {{page.mdate}}</p>
- {%endif%}
-
- {{page.content}}
-
- <p>Tags:
- {%for t in page.tags%}
- <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
- {%endfor%}
- </p>
- </body>
-</html>
+{%extends "base.html"%}
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>{{page.title}} -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+<meta name="description" content="{{config['description']}}"/>
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_extra%}
+{%endblock head_extra%}
+
+{%block head_og%}
+ <meta property="og:title" content="{{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{config['url']['main']}}/{{page.name}}"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="{{config['description']}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+ <h1>{{page.title}}</h1>
+
+ <p>By {{', '.join(page.author)}}</p>
+ <p>Created: {{page.cdate}}</p>
+ {%if page.mdate is not none%}
+ <p>Modified: {{page.mdate}}</p>
+ {%endif%}
+
+ {{page.content}}
+
+<p>Tags:
+{%for t in page.tags%}
+ <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}}
+{%endfor%}
+</p>
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file
diff --git a/pyssg.xyz/plt/blog/tag.html b/pyssg.xyz/plt/blog/tag.html
index 59cbdf1..53499b1 100644
--- a/pyssg.xyz/plt/blog/tag.html
+++ b/pyssg.xyz/plt/blog/tag.html
@@ -1,26 +1,65 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="utf-8">
- <base href="{{config['url']['static']}}">
- <title>Posts filtered by {{tag[0]}} -- {{config['title']}}</title>
- </head>
- <body>
- <h1>Posts filtered by {{tag[0]}}</h1>
- <p>Some text here.</p>
-
- <h2>Articles</h2>
- <ul>
- {%for p in tag_pages%}
- {%if loop.previtem%}
- {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
- <h3>{{p.cdate_list_sep}}</h3>
- {%endif%}
- {%else%}
- <h3>{{p.cdate_list_sep}}</h3>
+{%extends "base.html"%}
+
+{%block html_lang%}
+{{config['lang']}}
+{%endblock html_lang%}
+
+{%block head_title%}
+<title>Posts filtered by {{tag[0]}} -- {{config['title']}}</title>
+{%endblock head_title%}
+
+{%block head_description%}
+<meta name="description" content="{{config['description']}}"/>
+{%endblock head_description%}
+
+{%block head_rss%}
+<link rel="alternate" type="application/rss+xml" href="{{config['url']['main']}}/rss.xml" title="{{config['title']}} RSS">
+{%endblock head_rss%}
+
+{%block head_extra%}
+{%endblock head_extra%}
+
+{%block head_og%}
+ <meta property="og:title" content="{{config['title']}}"/>
+ <meta property="og:type" content="article"/>
+ <meta property="og:url" content="{{tag[1]}}"/>
+ <meta property="og:image" content="{{config['url']['static']}}/{{config['url']['default_image']}}"/>
+ <meta property="og:description" content="{{config['description']}}"/>
+ <meta property="og:locale" content="{{config['lang']}}"/>
+ <meta property="og:site_name" content="{{config['title']}}"/>
+{%endblock head_og%}
+
+{%block body_header%}
+{%import 'body/header.html' as body_header%}
+{{body_header.print(config)}}
+{%endblock body_header%}
+
+{%block body_content%}
+<h1>Posts filtered by {{tag[0]}}</h1>
+<p>Some text here.</p>
+
+<h2>Articles</h2>
+<ul>
+{%for p in tag_pages%}
+ {%if loop.previtem%}
+ {%if loop.previtem.cdate_list_sep !=p.cdate_list_sep%}
+ <h3>{{p.cdate_list_sep}}</h3>
{%endif%}
- <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
- {%endfor%}
- </ul>
- </body>
-</html>
+ {%else%}
+ <h3>{{p.cdate_list_sep}}</h3>
+ {%endif%}
+ <li>{{p.cdate_list}} - <a href="{{p.url}}">{{p.title}}</a></li>
+{%endfor%}
+</ul>
+{%endblock body_content%}
+
+{%block body_footer%}
+{%import 'body/footer.html' as body_footer%}
+{{body_footer.contact(config)}}
+{{body_footer.donate(config)}}
+{{body_footer.rss(config)}}
+<br>
+{{body_footer.created_with()}}
+<br>
+{{body_footer.copyright()}}
+{%endblock body_footer%} \ No newline at end of file