diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2026-01-01 17:36:39 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2026-01-02 16:21:05 +0200 |
| commit | c1856d1f3edbc4b32be5860233dede88db16a7bb (patch) | |
| tree | b3a5e2f600c0079bd04d7ab2bb459b4664ba66a1 /templates/macros.html | |
| parent | 6d7e34af89ef1038d213ff8ea325bb84d4a00d4a (diff) | |
Start migrating content
Diffstat (limited to 'templates/macros.html')
| -rw-r--r-- | templates/macros.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..cb5efdc --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,16 @@ +{% macro toc(page) %} +<nav class="toc"> + <ul> + {% for h in page.toc %} + <li><a href="{{ h.permalink }}">{{ h.title }}</a></li> + {% if h.children %} + <ul> + {% for c in h.children %} + <li><a href="{{ c.permalink }}">{{ c.title }}</a></li> + {% endfor %} + </ul> + {% endif %} + {% endfor %} + </ul> +</nav> +{% endmacro %} |
