2021-10-23 22:20:01 +02:00
|
|
|
{{ define "title" }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ define "main" }}
|
|
|
|
{{ if eq .Description "nottranslated" }}
|
2022-03-27 19:58:39 +02:00
|
|
|
{{ partial "nottranslated.html" . }}
|
|
|
|
{{ else if eq .Description "generator" }}
|
|
|
|
{{ partial "generator.html" . }}
|
2021-10-23 22:20:01 +02:00
|
|
|
|
|
|
|
{{ else }}
|
2022-03-26 22:14:04 +01:00
|
|
|
<div id="articletitle">
|
|
|
|
<h1>{{- .Title -}}</h1>
|
|
|
|
</div>
|
2022-03-27 00:05:47 +01:00
|
|
|
<article>
|
2022-03-26 22:14:04 +01:00
|
|
|
<div id="articlecontent">
|
|
|
|
<div id="articlemeta">
|
|
|
|
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
|
|
|
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
|
|
|
|
{{ end }}
|
2022-03-27 00:05:47 +01:00
|
|
|
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
2022-03-26 22:14:04 +01:00
|
|
|
{{ 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 }}
|
2022-03-27 00:05:47 +01:00
|
|
|
{{ 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 }}
|
|
|
|
{{ if and (ne .Params.contact "") (ne .Params.contact nil) }}
|
|
|
|
<div>Kontakt: <a href="mailto://{{ .Params.contact }}">{{ .Params.contact }}</a></div>
|
|
|
|
{{ end }}
|
2022-03-26 22:14:04 +01:00
|
|
|
</div>
|
|
|
|
<div id="articleinner">
|
|
|
|
<div id="articledata">
|
2022-03-27 00:05:47 +01:00
|
|
|
{{- if .Resources.ByType "image" -}}
|
2022-03-27 04:28:30 +02:00
|
|
|
{{ if eq .Content "" }}
|
|
|
|
<div class="notext">
|
|
|
|
{{ else }}
|
|
|
|
<div class="text">
|
|
|
|
{{ end }}
|
2022-03-27 00:05:47 +01:00
|
|
|
{{ range .Resources.ByType "image" }}
|
|
|
|
{{- $pic := . -}}
|
|
|
|
{{- $thumb := $pic.Resize "1024x" }}
|
|
|
|
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{- end }}
|
2022-03-26 22:14:04 +01:00
|
|
|
<div id="articletext">
|
|
|
|
{{- .Content -}}
|
|
|
|
</div>
|
2021-10-23 22:20:01 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-03-26 22:14:04 +01:00
|
|
|
</div>
|
2022-03-27 00:05:47 +01:00
|
|
|
</article>
|
2021-10-23 22:20:01 +02:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|