From 53fc299a80d3e34da4e3b92adb24ae7dfe5216ca Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 31 Aug 2020 15:05:05 +0200 Subject: [PATCH] sidebar improvements --- assets/sass/_custom.scss | 16 +++++++++++----- i18n/de.yaml | 3 +++ i18n/en.yaml | 3 +++ layouts/partials/sidebar.html | 10 +++++----- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/assets/sass/_custom.scss b/assets/sass/_custom.scss index f6b0fe7..7913407 100644 --- a/assets/sass/_custom.scss +++ b/assets/sass/_custom.scss @@ -1,20 +1,26 @@ .pagination { - display: flex; - justify-content: center; + display: flex; + justify-content: center; } .nav-link { - font-size: 130%; + font-size: 130%; } .nav-link.active { - font-weight: bold; + font-weight: bold; } code { - color: $purple; + color: $purple; } p { font-family: $font-family-sans-serif; } + +.badge a { + color: $white; + font-weight: bold; +} + diff --git a/i18n/de.yaml b/i18n/de.yaml index 33d8cbc..b9ffd65 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -8,6 +8,9 @@ about: articles: other: Artikel +articles-in-posts: + other: Alle Artikel + articles-in-section: other: Alle Artikel diff --git a/i18n/en.yaml b/i18n/en.yaml index 1eb061b..41d2304 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -8,6 +8,9 @@ about: articles: other: Articles +articles-in-posts: + other: All posts + articles-in-section: other: All articles diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 8018200..01483eb 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -27,12 +27,12 @@

{{i18n "topics"}}

-
{{- end }} @@ -67,7 +67,7 @@
{{- $section := or .Section "posts" -}}
-

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

+

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

    @@ -88,4 +88,4 @@
{{- end }} -
\ No newline at end of file +