From 188154aeb01e55f9254ba42f49e08c5336597441 Mon Sep 17 00:00:00 2001 From: Fabrice Mouhartem Date: Tue, 7 Nov 2023 11:47:19 +0100 Subject: [PATCH] Page listing in contents --- sass/_base.scss | 15 +++++++++++++++ templates/section.html | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/sass/_base.scss b/sass/_base.scss index c256619..9e52852 100644 --- a/sass/_base.scss +++ b/sass/_base.scss @@ -151,3 +151,18 @@ code { font-family: $mono-fonts; font-size:14px; } +.post { + margin: 10px; + background-color: #ddd; + font-size: 20px; + .post_title { + background-color: #ccc; + padding: 5px; + } + .post_title a { + font-family: $normal-fonts; + } + .post_summary { + padding: 5px; + } +} diff --git a/templates/section.html b/templates/section.html index 055832f..1b6e71c 100644 --- a/templates/section.html +++ b/templates/section.html @@ -2,4 +2,14 @@ {% block main %} {{ section.content | markdown(inline = true) | safe }} +
+{% for sub in section.pages %} +
+
+ {{ sub.title }} +
+ {% if sub.summary %}
{{ sub.summary | markdown(inline=true) | safe }}
{% endif %} +
+{% endfor %} +
{% endblock %}