From 5baae90010499e01fc1071ae78a44c09b6892c0d Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Sat, 14 Sep 2024 13:58:24 +0100 Subject: [PATCH] Show links to related posts Enter note titles in `page.related` and add `use: [notes]` to include links to related notes. --- source/_layouts/note.html.twig | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/_layouts/note.html.twig b/source/_layouts/note.html.twig index 68f99d5..dfac32b 100644 --- a/source/_layouts/note.html.twig +++ b/source/_layouts/note.html.twig @@ -32,4 +32,18 @@ {% endfor %} {% endif %} + + {% if page.related and data.notes %} +
+

Related

+ + +
+ {% endif %} {% endblock %}