bunteshaus.de/themes/buha/layouts/partials/layout/contact_imprint.html

33 lines
1.3 KiB
HTML

{{ $text := "solo" }}
{{ $content := .context.Content }}
<section>
<div class="articleinner">
<div class="articletext {{ $text }}">
{{ if .partial_before }}
{{ partial .partial_before (dict "context" .context "pic" .pic) }}
{{ end }}
{{ if in .context.File "imprint" }}
{{ if i18n "executive" }}{{ i18n "executive" }}{{ else }}{{ "Executive" }}{{ end }}: {{ .context.Site.Params.imprintdata.executive }}
{{ end }}
{{ .content }}
{{ if .context.Resources.ByType "image" }}
{{ range .context.Resources.ByType "image" }}
{{ $picname := . }}
{{ if not (or (in $content $picname.Name ) (hasPrefix $picname.Name "banner") )}}
<div class="article-image">
<a href="{{- $picname.Permalink -}}" class="no_underline">
<img loading="lazy"
src="{{ .Permalink }}"
alt="{{ . }}"
{{ with .Title}} title="{{ . }}"{{ end }}
width={{ $picname.Width }}
height="{{ $picname.Height }}" />
</a>
</div>
{{ end }}
{{ end }}
{{ end }}
</div>
</div>
</section>