Page listing in contents
This commit is contained in:
parent
a8e99b59f7
commit
188154aeb0
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user