-
- {{ if and (ne .Params.when "") (ne .Params.when nil) }}
-
{{ .Params.when }}
- {{ end }}
- {{ if and (ne .Params.price "") (ne .Params.price nil) }}
- {{ if eq .Params.price "free" }}
-
Der Eintritt ist frei.
- {{ else }}
-
Eintritt: {{ .Params.price }}
- {{ end }}
- {{ end }}
-
-
-
- {{- if .Resources.ByType "image" -}}
- {{- $pic := index (.Resources.ByType "image") 0 -}}
- {{ $thumb := "" }}
- {{ if eq .Content "" }}
-
- {{- $thumb = $pic.Resize "1024x" }}
- {{ else }}
-
- {{- $thumb = $pic.Resize "2048x" }}
- {{ end }}
-
-
-
- {{- end }}
-
- {{- if .Params.description -}}
- {{- .Params.description -}}
- {{- else -}}
- {{- .Summary -}}
- {{- end }}
- {{ if .Truncated }}
-
{{- i18n "readmore" -}}..
- {{ end }}
-
-
-
-
-
+ {{ partial "structure/list_article.html" . }}
{{ end }}
{{- end }}
-
- {{ if .IsTranslated }}
-
-
{{ "Translations" }}
- {{ range .Translations }}
-
- {{ T .Lang }}
-
- {{ end }}
-
- {{ end }}
-
- Verfasst am
- {{ .Date | time.Format ":date_full" }}
-
-
+
+
+{{ define "sidebar" }}
+
+
{{ T "tags" }}
+
+{{ end }}
\ No newline at end of file
diff --git a/themes/buha/layouts/partials/structure/article_meta.html b/themes/buha/layouts/partials/structure/article_meta.html
new file mode 100644
index 00000000..b69356d7
--- /dev/null
+++ b/themes/buha/layouts/partials/structure/article_meta.html
@@ -0,0 +1,43 @@
+{{ $invis := "none" }}
+{{ $covid := "true" }}
+{{ $price := "true" }}
+{{ $contact := "true" }}
+{{ $registeremail := "true" }}
+{{ if .invis }}
+ {{ $invis = split .invis "," }}
+ {{ range $invis }}
+ {{ if eq . "covid" }}
+ {{ $covid = "false" }}
+ {{ end }}
+ {{ if eq . "price" }}
+ {{ $price = "false" }}
+ {{ end }}
+ {{ if eq . "contact" }}
+ {{ $contact = "false" }}
+ {{ end }}
+ {{ if eq . "registeremail" }}
+ {{ $registeremail = "false" }}
+ {{ end }}
+ {{ end }}
+{{ end }}
+
+ {{ if and (ne .context.Params.when "") (ne .context.Params.when nil) }}
+
{{ .context.Params.when }}
+ {{ end }}
+ {{ if and (ne .context.Params.price "") (ne .context.Params.price nil) (eq $price "true") }}
+ {{ if eq .context.Params.price "free" }}
+
Der Eintritt ist frei.
+ {{ else }}
+
Eintritt: {{ .context.Params.price }}
+ {{ end }}
+ {{ end }}
+ {{ if and (ne .context.Params.registeremail "") (ne .context.Params.registeremail nil) (eq $registeremail "true")}}
+
Anmeldung unter {{ .context.Params.registeremail | markdownify }} erwünscht
+ {{ end }}
+ {{ if and (ne .context.Params.covid "") (ne .context.Params.covid nil) (eq $covid "true") }}
+
Es gilt die {{ .context.Params.covid }} Regel
+ {{ end }}
+ {{ if and (ne .context.Params.contact "") (ne .context.Params.contact nil) (eq $contact "true") }}
+
+ {{ end }}
+
\ No newline at end of file
diff --git a/themes/buha/layouts/partials/structure/empty.html b/themes/buha/layouts/partials/structure/empty.html
new file mode 100644
index 00000000..e69de29b
diff --git a/themes/buha/layouts/partials/structure/footer.html b/themes/buha/layouts/partials/structure/footer.html
index d6a63af5..c219b481 100644
--- a/themes/buha/layouts/partials/structure/footer.html
+++ b/themes/buha/layouts/partials/structure/footer.html
@@ -1,6 +1,10 @@
{{- if eq site.Params.contact true }}
{{- end -}}
@@ -8,10 +12,18 @@
diff --git a/themes/buha/layouts/partials/structure/header.html b/themes/buha/layouts/partials/structure/header.html
index c9c5a10f..5e978f3a 100644
--- a/themes/buha/layouts/partials/structure/header.html
+++ b/themes/buha/layouts/partials/structure/header.html
@@ -3,13 +3,17 @@