54 lines
2.1 KiB
HTML
54 lines
2.1 KiB
HTML
{{ $visible := "none" }}
|
|
{{ $covid := "false" }}
|
|
{{ $price := "false" }}
|
|
{{ $contact := "false" }}
|
|
{{ $registeremail := "false" }}
|
|
{{ if .visible }}
|
|
{{ $visible = split .visible "," }}
|
|
{{ range $visible }}
|
|
{{ if eq . "covid" }}
|
|
{{ $covid = "true" }}
|
|
{{ end }}
|
|
{{ if eq . "price" }}
|
|
{{ $price = "true" }}
|
|
{{ end }}
|
|
{{ if eq . "contact" }}
|
|
{{ $contact = "true" }}
|
|
{{ end }}
|
|
{{ if eq . "registeremail" }}
|
|
{{ $registeremail = "true" }}
|
|
{{ end }}
|
|
{{ if eq . "all" }}
|
|
{{ $contact = "true" }}
|
|
{{ $price = "true" }}
|
|
{{ $covid = "true" }}
|
|
{{ $registeremail = "true" }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<div id="articlemeta" style="font-size: smaller;">
|
|
{{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }}
|
|
<div>{{ .context.Params.when }}</div>
|
|
{{ end }}
|
|
{{ if and (ne .context.Params.price "") (ne .context.Params.price nil) (eq $price "true") }}
|
|
{{ if eq .context.Params.price "free" }}
|
|
<div>Der Eintritt ist frei.</div>
|
|
{{ else }}
|
|
<div>Eintritt: {{ .context.Params.price }}</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "true")}}
|
|
<div>Anmeldung unter {{ .context.Params.registeremail | markdownify }} erwünscht</div>
|
|
{{ else if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "false")}}
|
|
{{ $.context.Scratch.Set "meta" "true" }}
|
|
{{ end }}
|
|
{{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq $covid "true") }}
|
|
<div>Es gilt die {{ .context.Params.covid }} Regel</div>
|
|
{{ end }}
|
|
{{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "true") }}
|
|
<div>Kontakt: <a href="mailto://{{ .context.Params.contact }}">{{ .context.Params.contact }}</a></div>
|
|
{{ else if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "false") }}
|
|
{{ $.context.Scratch.Set "meta" "true" }}
|
|
{{ end }}
|
|
</div>
|