1
0

Show page updates in footer

This commit is contained in:
Emil Miler 2022-12-04 17:27:08 +01:00
parent 6a0b7f5afd
commit de2c2497b3
3 changed files with 22 additions and 2 deletions

View File

@ -104,7 +104,7 @@ nav {
}
main {
margin-bottom: 5rem;
margin-bottom: 2rem;
h1, h2, h3, h4, h5, h6 {
margin-top: 1.5em;
@ -117,7 +117,7 @@ main {
.info {
border-top: 1px solid #eee;
margin: 2em 0;
margin-top: 2em;
padding: 1em 0;
ul {
@ -131,6 +131,12 @@ main {
}
}
.updates ul {
margin-top: .5em;
padding: 0;
list-style-type: none;
}
img {
max-width: 100%;
box-sizing: border-box;

View File

@ -34,6 +34,19 @@
{% endif %}
{% endmacro %}
{% macro page_updates(page) %}
{% if page.extra.updates %}
<div class="updates">
Page updates:
<ul>
{% for update in page.extra.updates %}
<li>{{ update.date }} &mdash; {{ update.description }}</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% endmacro %}
{% macro toc() %}
{% if page.toc and not page.extra.notoc %}
<ul>

View File

@ -9,4 +9,5 @@
{{ macros::toc() }}
{{ page.content | safe }}
{{ macros::page_info(page=page) }}
{{ macros::page_updates(page=page) }}
{% endblock content %}