From 061b17810b4447a2949616c3202fac63f17f6e0e Mon Sep 17 00:00:00 2001 From: Stephan Date: Sun, 11 Apr 2021 10:10:01 +0200 Subject: [PATCH] Added proper heading to 'Aktuelles' page. --- assets/css/style.css | 14 ++++++++------ content/aktuelles/contents.lr | 2 +- templates/aggregator_page.html | 13 +++++++++++++ 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index ad44207..156ab1f 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -593,6 +593,11 @@ hr.-even { justify-content: center; } +.content.-no_pad { + padding: 0; + margin-top: -1.5rem; +} + .content__blog_link.-odd { color: var(--wtf-nearly-black) !important; } @@ -622,7 +627,7 @@ hr.-even { .content__aggregate_box { flex-wrap: wrap; - justify-content: space-around; + justify-content: space-between; } .content__inner_half_box { @@ -634,7 +639,7 @@ hr.-even { } .content__inner_aggregate_box { - margin: 1.5rem 0.5rem; + margin: 1.5rem 1.5rem; flex-basis: 40%; min-width: 300px; } @@ -748,10 +753,7 @@ hr.-even { .content__box a:visited, .pagination__anchor:visited, -.content__half_box a:visited { - color: var(--wtf-dark-blue); -} - +.content__half_box a:visited, .pagination__anchor.-even:visited { color: var(--wtf-light-blue); } diff --git a/content/aktuelles/contents.lr b/content/aktuelles/contents.lr index 258347a..54fbaaa 100644 --- a/content/aktuelles/contents.lr +++ b/content/aktuelles/contents.lr @@ -2,4 +2,4 @@ _model: aggregator_page --- title: Aktuelles --- -body: Aktuelle Inhalte findest Du im [Blog](/blog) und im [Podcast](/podcast). +body: Die neusten Blogposts und Podcastepisoden siehst Du hier, die vollständige Historie findest Du unter [Blog](/blog) und [Podcast](/podcast). diff --git a/templates/aggregator_page.html b/templates/aggregator_page.html index 5ce07a4..9c45ac7 100644 --- a/templates/aggregator_page.html +++ b/templates/aggregator_page.html @@ -8,7 +8,20 @@ {%- endif -%} {%- endblock -%} {% block body %} +
+
+

{{ this.title }}

+
+
+
+
+ {{ this.body }} +
+
+
+ +
{% set blog_posts = site.get('/blog').children.order_by('-pub_date').limit(3) %}
{% for post in blog_posts %}