diff options
| author | Ahmed M Alaa <aa@4b.cx> | 2022-12-03 21:01:01 +0200 |
|---|---|---|
| committer | Ahmed M Alaa <aa@4b.cx> | 2022-12-03 21:01:01 +0200 |
| commit | 028f23e96dd4c6a86465cb616be84480ac3a7a1e (patch) | |
| tree | caffe481ff29aab5111e69b242cfc072a84912b6 /templates/page.html | |
init: just ported the theme
Diffstat (limited to 'templates/page.html')
| -rw-r--r-- | templates/page.html | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..1e395e3 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,32 @@ +{% extends "base.html" %} + +{% block header %} +<p><a href="..">..</a>/{{ page.slug }}</p> +<p class="post-meta"><time datetime="{{ page.date }}">{{ page.date }}</time></p> +<h1>{{ page.title }}</h1> +{% endblock header %} + +{% block content %} + +{% if page.toc and page.extra.add_toc %} +Table of contents +<ul> +{% for h1 in page.toc %} + <li> + <a href="{{ h1.permalink | safe }}">{{ h1.title }}</a> + {% if h1.children %} + <ul> + {% for h2 in h1.children %} + <li> + <a href="{{ h2.permalink | safe }}">{{ h2.title }}</a> + </li> + {% endfor %} + </ul> + {% endif %} + </li> +{% endfor %} +</ul> +{% endif %} + +{{ page.content | safe }} +{% endblock content %}
\ No newline at end of file |
