blob: b4cb6d07ce87f3d9873526b6675ca936f86b5c9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{% 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 %}
{% macro linklog(page) %}
{% set lh_data = load_data(path="linklog.json") %}
<ul class="archive-list">
{% for lh_post in lh_data.posts %}
<li class="archive-entry">
<a href="{{ lh_post.href }}">{{ lh_post.description }}</a>
<small>({{ lh_post.time | date(format='%Y-%m-%d') }})</small>
</li>
{% endfor %}
</ul>
{% endmacro %}
|