small fixes

This commit is contained in:
teldra 2022-04-06 21:49:18 +02:00
parent 49ec290fe3
commit 3ca61d41d0
7 changed files with 4 additions and 10 deletions

View File

@ -20,7 +20,7 @@
</div>
{{ end }}
<article>
{{ partial "contact.html" }}
{{ partial "contentlayouts/contact" }}
{{ i18n "executive" }}: {{ site.Params.imprintdata.executive }}
{{ .Content }}
</article>

View File

@ -22,7 +22,6 @@
{{ $showmeta = "true" }}
{{ $covid = true }}
{{ end }}
{{ if and (eq $showmeta "true") (ne .type "contact") }}
<div id="articlemeta" style="font-size: smaller;">
{{ if eq $when true }}
@ -79,7 +78,7 @@
{{ end }}
{{- if or .context.Content .context.Summary -}}
<div id="articletext" class="{{ $big }}">
{{ if eq .type "contact" }}{{ partial "contact.html" }}{{ end }}
{{ if eq .type "contact" }}{{ partial "contentlayouts/contact" }}{{ end }}
{{ if eq .type "list" }}{{- .context.Summary -}}{{ else }}{{- .context.Content -}}{{ end }}
{{ if and .context.Truncated (eq .type "list") }}
<div id="readmore">{{- i18n "readmore" -}}..</div>

View File

@ -8,7 +8,7 @@
<noscript><p><b>Bitte aktiviere Javascript, sonst funktioniert der Generator nicht.</b></p></noscript>
{{ if (index .Page.Params.forms 0) }}
{{ partial "form.html" (dict "context" . "form" 0) }}
{{ partial "misc/form" (dict "context" . "form" 0) }}
{{ end }}
</article>

View File

@ -5,7 +5,7 @@
{{ $contact = i18n "contact" }}
{{ end }}
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a><br><br>
{{- partial "contact.html" -}}
{{- partial "contentlayouts/contact" -}}
</div>
{{- end -}}

View File

@ -1,5 +0,0 @@
{{ $nr := index .Params 0 }}
{{ $alt := "sry_no_desc" }}
{{ if index .Params 1}}{{ $alt = index .Params 1 }}{{ end }}
{{- $pic := index ($.Page.Resources.ByType "image") $nr -}}
<a href="{{- $pic.Permalink -}}"><img src="{{- $pic.Permalink -}}" alt="{{ $alt }}" /></a>