diff options
Diffstat (limited to 'templates/macros.html')
| -rw-r--r-- | templates/macros.html | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/macros.html b/templates/macros.html index b4cb6d0..3922659 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -26,3 +26,20 @@ {% endfor %} </ul> {% endmacro %} + +{% macro page_h1(page) %} +<h1> + {{ page.title }}<br /> + {% if page.date %} + <small>({{ page.date }})</small> + {% endif %} + {% if page.extra.kind %} + <small>[{{ page.extra.kind }}]</small> + {% endif %} +</h1> +{% endmacro %} + +{% macro page_content(page) %} +{{ self::page_h1(page=page) }} +{{ page.content | replace(from="<!-- toc -->", to=macros::toc(page=page)) | safe }} +{% endmacro %} |
