From a9625c62d73f3a2bdc639cea8aa786d6e452a0b1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 22 Sep 2024 12:58:54 -0700 Subject: use a dedicated template for notes That way I can have a TOC and a few other things. --- templates/note.html | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 templates/note.html (limited to 'templates') diff --git a/templates/note.html b/templates/note.html new file mode 100644 index 0000000..1d85b62 --- /dev/null +++ b/templates/note.html @@ -0,0 +1,44 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} + +{% block content -%} +
+

{{ page.title }}

+ + {% if page.toc %} +
+ +
+
    + {% for h1 in page.toc %} +
  • + {{ h1.title }} + {% if h1.children %} + + {% endif %} +
  • + {% endfor %} +
+
+
+ {% endif %} + + {{ page.content | safe -}} +
+ + + +{%- endblock content %} -- cgit 1.4.1