From 327f17dd398cbf2056d33a72bc9216be9003099a Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Fri, 8 Jul 2022 17:35:15 +0200 Subject: [PATCH] ADD Image description, REFACTORING --- assets/scss/index.scss | 2 +- layouts/404.html | 2 +- layouts/_default/single.html | 2 +- layouts/_default/term.html | 26 ++++++++++++++------------ layouts/partials/header.html | 2 +- layouts/partials/links.html | 14 -------------- layouts/partials/posts.html | 4 ++-- layouts/partials/service.html | 4 ++-- layouts/partials/team.html | 4 ++-- layouts/posts/list.html | 4 ++-- layouts/posts/single.html | 6 +++--- layouts/team/list.html | 4 ++-- layouts/team/single.html | 26 ++++++++++++++------------ 13 files changed, 45 insertions(+), 55 deletions(-) diff --git a/assets/scss/index.scss b/assets/scss/index.scss index 669e00f..c988009 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: 5px; + margin: auto; justify-content: center; } diff --git a/layouts/404.html b/layouts/404.html index 25db2e6..98e5238 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,5 +1,5 @@ {{ define "main" }}
- + Not Found Image
{{ end }} \ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2ccfa6b..2918eba 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,7 +1,7 @@ {{ define "main" }} {{ with .Params.image }} {{ if .url }} - + {{ .alt }} {{ else }} {{ end }} diff --git a/layouts/_default/term.html b/layouts/_default/term.html index d5ab45d..9339310 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -9,18 +9,20 @@
{{ range .Pages }} - -
- {{ if .Params.image }} - - {{ else }} - - {{ end }} -
{{.Title}}
-
{{ .Content | safeHTML | truncate 250 }}
-
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten
-
-
+ {{ end }}
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 8438d04..ef1f315 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -13,7 +13,7 @@