From 25ffefe77c503f4eccee4f1f8c23965a91af22b8 Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Mon, 25 Jul 2022 10:19:53 +0200 Subject: [PATCH] FIX display problem with cards --- assets/scss/index.scss | 2 +- layouts/_default/term.html | 2 +- layouts/partials/posts.html | 2 +- layouts/posts/list.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/scss/index.scss b/assets/scss/index.scss index c988009..65615b1 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -419,7 +419,7 @@ button { box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); max-width: 350px; height: 400px; - margin: auto; + margin: 1rem auto; justify-content: center; } diff --git a/layouts/_default/term.html b/layouts/_default/term.html index 9339310..20b37b0 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -18,7 +18,7 @@ Default Image {{ end }}
{{.Title}}
-
{{ .Content | safeHTML | truncate 250 }}
+
{{ .Summary | safeHTML | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten
diff --git a/layouts/partials/posts.html b/layouts/partials/posts.html index fc230ac..f382cbc 100644 --- a/layouts/partials/posts.html +++ b/layouts/partials/posts.html @@ -25,7 +25,7 @@ Defaul Image {{ end }}
{{.Title}}
-
{{ .Content | safeHTML | truncate 250 }}
+
{{ .Summary | safeHTML | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index f9a1583..9dfd199 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -20,7 +20,7 @@ Default Image {{ end }}
{{.Title}}
-
{{ .Content | safeHTML | truncate 250 }}
+
{{ .Summary | safeHTML | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten