bunteshaus.de/themes/buha/layouts/_default/single.html

42 lines
1.3 KiB
HTML
Raw Normal View History

2021-10-23 22:20:01 +02:00
{{ define "title" }}
{{ end }}
{{ define "main" }}
{{ if eq .Description "nottranslated" }}
2022-03-26 21:17:30 +01:00
{{ partial "orga.html" . }}
2021-10-23 22:20:01 +02:00
{{ else }}
2022-03-26 21:17:30 +01:00
<h1>{{- .Title -}}</h1>
2021-10-23 22:20:01 +02:00
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
{{ end }}
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
{{ if eq .Params.price "free" }}
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
{{ else }}
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
{{ end }}
{{ end }}
{{ if and (ne .Params.register "") (ne .Params.register nil) }}
<div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div>
{{ end }}
{{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
<div>Es gilt die {{ .Params.covid }} Regel</div>
{{ end }}
<div id="articledata">
{{- if .Resources.ByType "image" -}}
<div id="articleimage">
{{ range .Resources.ByType "image" }}
{{- $pic := . -}}
{{- $thumb := $pic.Resize "1024x" }}
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
{{ end }}
</div>
{{- end }}
2022-03-26 21:17:30 +01:00
<div id="articletext-single">
2021-10-23 22:20:01 +02:00
{{- .Content -}}
</div>
</div>
{{ end }}
{{ end }}