diff --git a/i18n/de.yaml b/i18n/de.yaml index 956f97b..52ec393 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -32,6 +32,9 @@ prev: recentArticles: other: Aktuelle Artikel +Teaser: + other: Hintergrund + topics: other: Themen diff --git a/i18n/en.yaml b/i18n/en.yaml index 69e709b..fe94c38 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -33,6 +33,9 @@ prev: recentArticles: other: Recent Posts +Teaser: + other: Teaser + topics: other: Topics diff --git a/layouts/partials/card.html b/layouts/partials/card.html index 4837566..3e2dba4 100644 --- a/layouts/partials/card.html +++ b/layouts/partials/card.html @@ -4,6 +4,10 @@ {{ if .Params.img }} {{ .Title }} + {{ else if .Params.teaser }} +
+

{{ .Params.teaser }}

+
{{ else if .Site.Params.defaultImage }} {{ .Title | truncate 25 }} {{ .Date.Format (i18n "dateFormat") }} - - -

{{ .Summary | plainify | truncate 100 }}

diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 28ad54b..7bdc7f8 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,18 +1,25 @@
-
- {{ if .Params.img }} - {{ .Params.title }} - {{ else }} - dummy - {{ end }} -
+ {{ if .Params.img }} + {{ .Params.title }} + {{ else if .Params.teaser }} +
+
+

{{ i18n "Teaser" }}

+
+
+

{{ .Params.teaser }}

+
+
+ {{ else if .Site.Params.defaultImage }} + dummy + {{ end }} {{ $taxo := "topics" }} {{ if .Param $taxo }} -
+

{{i18n "topics"}}

@@ -30,7 +37,7 @@
{{ end }} -
+

{{i18n "recentArticles"}}