www.kontakt-bamberg.de/layouts/_default/single.html

13 lines
320 B
HTML
Raw Normal View History

2023-03-11 11:41:19 +01:00
{{ define "main" }}
<h1>{{ .Title }}</h1>
2023-03-11 14:07:49 +01:00
{{ $textContent := .Content }}
{{ with .Resources.GetMatch "image.jpg" }}
<article>
<section class="text">{{ $textContent }}</section>
<section class="image"><img alt="{{ .Title }}" src="{{ .RelPermalink }}"></section>
</article>
{{ else }}
2023-03-11 11:41:19 +01:00
{{ .Content }}
{{ end }}
2023-03-11 14:07:49 +01:00
{{ end }}