ADD quote and default section, ADD cover images to lists, FIX contact section

This commit is contained in:
Hoernschen 2024-03-15 17:37:03 +01:00
parent e6257036b9
commit 57e72154a5
Signed by: hoernschen
GPG key ID: 37591FAF4E6D3462
8 changed files with 82 additions and 15 deletions

View file

@ -1,4 +1,11 @@
{{ define "main" }}
{{ with .Params.image }}
{{ if .url }}
<img class="coverimage" src="{{ .url }}" alt="{{ .alt }}" />
{{ else }}
<img class="coverimage" src="{{ . }}" />
{{ end }}
{{ end }}
{{ if .Content }}
<div class="content">
{{ with .Title }}
@ -32,9 +39,13 @@
{{- partial "logos.html" (dict "id" $id "logos" .Params "odd" $odd) -}}
{{ else if eq .Params.type "links" }}
{{- partial "links.html" (dict "id" $id "links" .Params "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
{{ else if eq .Params.type "quote" }}
{{- partial "quote.html" (dict "id" $id "quote" .Params "content" .Content "odd" $odd) -}}
{{ else if eq .Params.type "posts" }}
{{ $pages := where $.Site.RegularPages "Section" $id }}
{{- partial "posts.html" (dict "id" $id "posts" .Params "pages" $pages "defaultimage" $.Site.Params.defaultimage "odd" $odd) -}}
{{ else if .IsPage }}
{{- partial "default.html" (dict "id" $id "params" .Params "content" .Content "odd" $odd) -}}
{{ end }}
{{ end }}
{{ end }}
{{ end }}