Page listing in contents

This commit is contained in:
Fabrice Mouhartem 2023-11-07 11:47:19 +01:00
parent a8e99b59f7
commit 188154aeb0
2 changed files with 25 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -2,4 +2,14 @@
{% block main %}
{{ section.content | markdown(inline = true) | safe }}
<div class="pages">
{% for sub in section.pages %}
<article class="post">
<div class="post_title">
<a href="{{ sub.path }}">{{ sub.title }}</a>
</div>
{% if sub.summary %}<div class="post_summary">{{ sub.summary | markdown(inline=true) | safe }}</div>{% endif %}
</article>
{% endfor %}
</div>
{% endblock %}