forked from Bunteshaus/bunteshaus.de
34 lines
1.5 KiB
HTML
34 lines
1.5 KiB
HTML
{{ define "content" }}
|
|
{{ $text := "solo" }}
|
|
{{ $content := .Content }}
|
|
<article>
|
|
<section>
|
|
<div class="articleinner">
|
|
<div class="articletext {{ $text }}">
|
|
{{ partial "snippets/contact" (dict "context" .) }}
|
|
{{ if i18n "executive" }}{{ i18n "executive" }}{{ else }}{{ "Executive" }}{{ end }}: {{ .Site.Params.imprintdata.executive }}
|
|
{{ $content }}
|
|
{{ if .Resources.ByType "image" }}
|
|
{{ range .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>
|
|
</article>
|
|
{{ end }}
|
|
|