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

View File

@ -34,6 +34,19 @@
{% endif %} {% endif %}
{% endmacro %} {% 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() %} {% macro toc() %}
{% if page.toc and not page.extra.notoc %} {% if page.toc and not page.extra.notoc %}
<ul> <ul>

View File

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