diff --git a/assets/scss/index.scss b/assets/scss/index.scss index ec015fe..2cebf5c 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -213,14 +213,14 @@ img { flex-wrap: wrap; gap: 2rem; justify-content: center; - a { - color: inherit; - margin: 0 auto; - .member { - display: inline-block; - align-items: center; - text-align: center; - padding: 1rem; + .member { + display: inline-block; + align-items: center; + text-align: center; + padding: 1rem; + a { + color: inherit; + margin: 0 auto; .title { font-size: x-large; padding-bottom: 0.1rem; @@ -560,10 +560,6 @@ button { } } -.noCover { - object-fit: unset !important; -} - .cardTitle { text-align: center; font-size: 18px; @@ -597,7 +593,11 @@ button { height: 60vh; min-width: 100%; padding-top: 68px; - object-fit: cover; + object-fit: contain; +} + +.cover { + object-fit: cover !important; } .image-copyright { diff --git a/layouts/_default/term.html b/layouts/_default/term.html index e3d9bf0..a59e0c9 100644 --- a/layouts/_default/term.html +++ b/layouts/_default/term.html @@ -15,7 +15,7 @@ {{- partial "components/image.html" (dict "style" "cardImage" "url" .Site.Params.defaultimage "alt" "Placeholder") -}} {{ end }}
{{.Title}}
-
{{ .Summary | safeHTML | truncate 320 }}
+
{{ .Summary | plainify | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten
diff --git a/layouts/partials/links.html b/layouts/partials/links.html index dfe419f..b825e43 100644 --- a/layouts/partials/links.html +++ b/layouts/partials/links.html @@ -18,7 +18,10 @@
{{ if .image }} - {{ $style := "cardImage {{if ne .Params.image.cover }} noCover {{ end }}" }} + {{ $style := "cardImage" }} + {{ if .Params.image.cover }} + {{ $style = "cardImage cover" }} + {{ end }} {{- partial "components/image.html" (dict "style" $style "url" .image.url "alt" .image.alt) -}} {{ else if .icon }}
diff --git a/layouts/partials/team.html b/layouts/partials/team.html index 758b3c9..da5f4ef 100644 --- a/layouts/partials/team.html +++ b/layouts/partials/team.html @@ -1,48 +1,47 @@ -{{- $team := .team }} -{{- $pages := .pages}} +{{- $team := .team }} +{{- $pages := .pages}} {{- $defaultimage := .defaultimage}} {{- $odd := .odd }} {{- $id := "team"}} {{if $team.id}} - {{- $id = $team.id}} + {{- $id = $team.id}} {{else if .id}} - {{- $id = .id }} + {{- $id = .id }} {{end}} -{{- $members := where $pages "Params.leaveDate" "==" nil}} -{{- $first := $team.first | default 4}} +{{- $members := where $pages "Params.leaveDate" "==" nil}} {{- $first := $team.first | default 4}}
-
- {{ partial "components/title.html" $team.title }} -
- {{- range first $first ($members.ByParam "startDate") }} - -
- {{ if .Params.image }} - {{- partial "components/image.html" (dict "style" "avatar" "url" .Params.image "alt" .Params.name) -}} - {{ else }} - {{- partial "components/image.html" (dict "style" "avatar" "url" $defaultimage "alt" "Placeholder") -}} - {{ end }} -

{{ .Params.name }}

- {{- range .Params.jobs }} -

{{ . }}

- {{- end }} - -
-
- {{- end }} +
+ {{ partial "components/title.html" $team.title }} +
+ {{- range first $first ($members.ByParam "startDate") }} +
+ + {{ if .Params.image }} + {{- partial "components/image.html" (dict "style" "avatar" "url" .Params.image "alt" .Params.name) -}} + {{ else }} + {{- partial "components/image.html" (dict "style" "avatar" "url" $defaultimage "alt" "Placeholder") -}} + {{ end }} +

{{ .Params.name }}

+ {{- range .Params.jobs }} +

{{ . }}

+ {{- end }} +
+ - {{ if gt $members.Len $first }} - {{ partial "components/button.html" (dict "type" "text block" "url" $team.id "text" ($team.more | default "More")) }} - {{ end }} +
+ {{- end }}
+ {{ if gt $members.Len $first }} + {{ partial "components/button.html" (dict "type" "text block" "url" $team.id "text" ($team.more | default "More")) }} + {{ end }} +
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 745188d..87e69df 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -11,13 +11,16 @@
{{ if .Params.image }} - {{ $style := "cardImage {{if ne .Params.image.cover }} noCover {{ end }}" }} + {{ $style := "cardImage" }} + {{ if .Params.image.cover }} + {{ $style = "cardImage cover" }} + {{ end }} {{- partial "components/image.html" (dict "style" $style "url" .Params.image.url "alt" .Params.image.alt) -}} {{ else }} {{- partial "components/image.html" (dict "style" "cardImage" "url" .Site.Params.defaultimage "alt" "Placeholder") -}} {{ end }}
{{.Title}}
-
{{ .Summary | safeHTML | truncate 320 }}
+
{{ .Summary | plainify | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 5c1b20b..af5bf4e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,6 +1,9 @@ {{ define "main" }} {{ with .Params.image }} - {{ $style := "coverimage {{if ne .Params.image.cover }} noCover {{ end }}" }} + {{ $style := "coverimage" }} + {{ if .cover }} + {{ $style = "coverimage cover" }} + {{ end }} {{- partial "components/image.html" (dict "style" $style "url" .url "alt" .alt) -}} {{ with .copyright }} @@ -38,7 +41,7 @@ {{ partial "components/icon.html" . }} {{- end}} {{if .Params.mail}} - {{ partial "components/icon.html" (dict "type" "at" "url" "mailto:{{ .Params.mail }}") }} + {{ partial "components/icon.html" (dict "type" "at" "url" (printf "mailto:%s" .Params.mail) ) }} {{end}}
diff --git a/layouts/team/list.html b/layouts/team/list.html index f72389c..d469a0f 100644 --- a/layouts/team/list.html +++ b/layouts/team/list.html @@ -1,35 +1,35 @@ {{ define "main" }}
-
- {{ partial "components/title.html" .Title }} - {{.Content}} -
- {{ end }} diff --git a/layouts/team/single.html b/layouts/team/single.html index c6a4b78..0d36998 100644 --- a/layouts/team/single.html +++ b/layouts/team/single.html @@ -13,7 +13,7 @@ {{ partial "components/icon.html" . }} {{- end}} {{if .Params.mail}} - {{ partial "components/icon.html" (dict "type" "at" "url" "mailto:{{ .Params.mail }}") }} + {{ partial "components/icon.html" (dict "type" "at" "url" (printf "mailto:%s" .Params.mail) ) }} {{end}}
@@ -35,13 +35,16 @@
{{ if .Params.image }} - {{ $style := "cardImage {{if ne .Params.image.cover }} noCover {{ end }}" }} + {{ $style := "cardImage" }} + {{ if .Params.image.cover }} + {{ $style = "cardImage cover" }} + {{ end }} {{- partial "components/image.html" (dict "style" $style "url" .Params.image.url "alt" .Params.image.alt) -}} {{ else }} {{- partial "components/image.html" (dict "style" "cardImage" "url" .Site.Params.defaultimage "alt" "Placeholder") -}} {{ end }}
{{.Title}}
-
{{ .Summary | safeHTML | truncate 320 }}
+
{{ .Summary | plainify | truncate 320 }}
{{.Date.Format "02.01.2006"}} | {{.ReadingTime}} Minuten