bunteshaus.de/themes/buha/layouts/partials/snippets/article_metadata.html

27 lines
1.0 KiB
HTML
Raw Normal View History

2022-04-28 14:53:58 +02:00
{{ if or .when .price .contact_mail .covid .insta }}
2022-04-09 21:34:04 +02:00
2022-04-12 08:26:18 +02:00
<div class="articlemeta font_size_smaller">
2022-04-09 21:34:04 +02:00
{{ if .when }}
<div>{{ .when }}</div>
{{ end }}
{{ if .price }}
{{ if eq .price "free" }}
<div>{{ if i18n "freeentry" }}{{ i18n "freeentry" }}{{ else }}{{ "Free Entry" }}{{ end }}</div>
2022-04-22 11:14:11 +02:00
{{ else if eq .price "donation" }}
2022-04-22 11:37:51 +02:00
<div>{{ if i18n "donationentry" }}{{ i18n "donationentry" }}{{ else }}{{ "Voluntary Donation" }}{{ end }}</div>
2022-04-09 21:34:04 +02:00
{{ else }}
<div>{{ if i18n "entry" }}{{ i18n "entry" }}{{ else }}{{ "Entry" }}{{ end }}: {{ .price }}</div>
{{ end }}
{{ end }}
2022-04-28 14:53:58 +02:00
{{ if .insta }}
<div>Instagram: <a href="https://instagram.com/{{- .insta -}}">https://instagram.com/{{- .insta -}}</a></div>
{{ end }}
{{ if .contact_mail }}
<div>{{ if i18n "mail" }}{{ i18n "mail" }}{{ else }}{{ "mail" }}{{ end }} {{ .contact_mail | markdownify }}</div>
2022-04-09 21:34:04 +02:00
{{ end }}
{{ if .covid }}
<div>Covid: {{ .covid }}</div>
{{ end }}
</div>
{{ end }}