summaryrefslogtreecommitdiffstats
path: root/templates/macros.html
diff options
context:
space:
mode:
authorJan Tuomi <jan@jantuomi.fi>2026-01-02 14:35:37 +0200
committerJan Tuomi <jan@jantuomi.fi>2026-01-02 16:21:05 +0200
commit25cf78720efb544c0c2516d1a4137035878b6a2e (patch)
treeb81d32d9a14e95d6b1b35e0ac61d16c9b996aae7 /templates/macros.html
parent9ee2b0f19c4f50c10c18a0cc416d4981ed786af1 (diff)
Add linklog
Diffstat (limited to 'templates/macros.html')
-rw-r--r--templates/macros.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/macros.html b/templates/macros.html
index cb5efdc..b4cb6d0 100644
--- a/templates/macros.html
+++ b/templates/macros.html
@@ -14,3 +14,15 @@
</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 %}