From de41337b2286689d83a4d15434839ef7d4293e3b Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Fri, 14 Aug 2020 09:36:48 +0200 Subject: [PATCH] sidebar enrichments --- archetypes/default.md | 2 +- assets/sass/_custom.scss | 2 +- i18n/de.yaml | 8 +++++++- i18n/en.yaml | 6 ++++++ layouts/partials/sidebar.html | 28 +++++++++++++++++++++++++++- 5 files changed, 42 insertions(+), 4 deletions(-) diff --git a/archetypes/default.md b/archetypes/default.md index 6563468..f5f166c 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -11,4 +11,4 @@ draft: false weight: 50 --- -### First Headline +## First Headline diff --git a/assets/sass/_custom.scss b/assets/sass/_custom.scss index 71f5ba5..f6b0fe7 100644 --- a/assets/sass/_custom.scss +++ b/assets/sass/_custom.scss @@ -12,7 +12,7 @@ } code { - color: $blue; + color: $purple; } p { diff --git a/i18n/de.yaml b/i18n/de.yaml index b1fb102..33d8cbc 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -8,6 +8,9 @@ about: articles: other: Artikel +articles-in-section: + other: Alle Artikel + author: other: Autor @@ -23,7 +26,7 @@ domains: Domains: other: Bereiche -domains: +domain: other: Bereich next: @@ -41,6 +44,9 @@ prev: recentArticles: other: Aktuelle Artikel +related: + other: Ähnliche Artikel + Teaser: other: Hintergrund diff --git a/i18n/en.yaml b/i18n/en.yaml index 20acdfb..1eb061b 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -8,6 +8,9 @@ about: articles: other: Articles +articles-in-section: + other: All articles + author: other: Author @@ -42,6 +45,9 @@ prev: recentArticles: other: Recent Posts +related: + other: Related Posts + Teaser: other: Teaser diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 6dc0604..6aa3bdc 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -31,10 +31,35 @@ {{- end }} + {{ with .Params.Topics -}} +
+
+

{{ i18n "related" }}

+
+ +
+ {{- end }} + + {{ if .Site.Params.showSectionArticles -}}
{{- $section := or .Section "posts" -}}
-

{{i18n $section}}

+

{{ or (i18n $section) (i18n "articles-in-section") }}

    @@ -53,5 +78,6 @@
+ {{- end }} \ No newline at end of file