From de2c2497b343eef232da490b7e8791667f0bb9a6 Mon Sep 17 00:00:00 2001 From: Emil Miler Date: Sun, 4 Dec 2022 17:27:08 +0100 Subject: [PATCH] Show page updates in footer --- sass/style.scss | 10 ++++++++-- templates/macros.html | 13 +++++++++++++ templates/page.html | 1 + 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/sass/style.scss b/sass/style.scss index 3d35a05..418541d 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -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; diff --git a/templates/macros.html b/templates/macros.html index 522b5c0..78aa344 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -34,6 +34,19 @@ {% endif %} {% endmacro %} +{% macro page_updates(page) %} + {% if page.extra.updates %} +
+ Page updates: + +
+ {% endif %} +{% endmacro %} + {% macro toc() %} {% if page.toc and not page.extra.notoc %}