diff options
Diffstat (limited to 'src/pyssg/plt/page.html')
-rw-r--r-- | src/pyssg/plt/page.html | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/src/pyssg/plt/page.html b/src/pyssg/plt/page.html index b61ad03..395b0f0 100644 --- a/src/pyssg/plt/page.html +++ b/src/pyssg/plt/page.html @@ -1,25 +1,19 @@ -<!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.date(page.cts, 'date')}}</p> - {%if page.mtimestamp != 0.0%} - <p>Modified: {{page.date(page.mts, 'date')}}</p> - {%endif%} +{%extends "base.html"%} +{%block head_title%} + <title>{{page.title}} -- {{config['title']}}</title> +{%endblock head_title%} - {{page.content}} +{%block body_content%} + <h1>{{page.title}} -- {{config['title']}}</h1> - <p>Tags: - {%for t in page.tags%} - <a href="{{t[1]}}">{{t[0]}}</a>{{", " if not loop.last else ""}} - {%endfor%} - </p> - </body> -</html> + <p>By {{page.author}}</p> + <p>Created: {{page.date(page.cts, 'date')}}</p> + {%if page.mtimestamp != 0.0%} + <p>Modified: {{page.date(page.mts, 'date')}}</p> + {%endif%} + {{page.content}} + + {%import "tag_list.html" as tag_list%} + {{tag_list.print(page.tags)}} +{%endblock body_content%} |