1
0

Show page updates in footer

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

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 %}