diff options
Diffstat (limited to 'src/pyssg/plt/index.html')
-rw-r--r-- | src/pyssg/plt/index.html | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/src/pyssg/plt/index.html b/src/pyssg/plt/index.html index 23d890a..4409ba4 100644 --- a/src/pyssg/plt/index.html +++ b/src/pyssg/plt/index.html @@ -1,32 +1,9 @@ -<!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> +{%extends "base.html"%} +{%block head_title%} + <title>Index -- {{config['title']}}</title> +{%endblock head_title%} - <h2>Articles</h2> - <ul> - {%for p in all_pages%} - {%if loop.previtem%} - {%if loop.previtem.date(loop.previtem.cts, 'list_sep_date') != p.date(p.cts, 'list_sep_date')%} - <h3>{{p.date(p.cts, 'list_sep_date')}}</h3> - {%endif%} - {%else%} - <h3>{{p.date(p.cts, 'list_sep_date')}}</h3> - {%endif%} - <li>{{p.date(p.cts, 'list_date')}} - <a href="{{p.url}}">{{p.title}}</a></li> - {%endfor%} - </ul> - </body> -</html> +{%block body_content%} + <h1>Index -- {{config['title']}}</h1> + {{page.content}} +{%endblock body_content%} |