diff --git a/content/archive/_index.de.md b/content/archive/_index.de.md index 78756941..31f5b8f9 100644 --- a/content/archive/_index.de.md +++ b/content/archive/_index.de.md @@ -2,3 +2,4 @@ title: "Archiv" layout: "archive" --- +ewdsfsdf diff --git a/content/news/2022-04-04-Konzert-Katzengejammer/index.de.md b/content/news/2022-04-04-Konzert-Katzengejammer/index.de.md index 6b6f1c5b..3c222df2 100644 --- a/content/news/2022-04-04-Konzert-Katzengejammer/index.de.md +++ b/content/news/2022-04-04-Konzert-Katzengejammer/index.de.md @@ -2,7 +2,7 @@ title: "Katzengejammer" date: "2022-04-04T23:16:00+02:00" when: "Montag, 04.04.2022, 23.23 Uhr" -events: ["Konzert"] +events: ["Konzerte"] price: "free" foundations: ["brentrup","aktionmensch"] covid: "Keine Masken mehr!" diff --git a/themes/buha/layouts/partials/l1/archive.html b/themes/buha/layouts/partials/l1/archive.html index 4131cb8e..916d01f0 100644 --- a/themes/buha/layouts/partials/l1/archive.html +++ b/themes/buha/layouts/partials/l1/archive.html @@ -1,7 +1,6 @@ {{ if ne .context.Content "" }} -
{{ partial "snippets/content" (dict "content" .context.Content) }} -
+ {{ end }}
{{ partial "debug" (dict "context" . "caller" "archive.html" )}} @@ -9,12 +8,12 @@ {{range where site.RegularPages "Type" "in" site.Params.searchSections }} {{ $date := .Date }} {{ if gt $prev ($date.Format "2006") }} -

{{ $date.Format "2006" }}

+

{{ $date.Format "2006" }}

{{end}} -
+
-
{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006 15:04" }}

-
+
{{- $date.Format "02" }}. {{ if $date.Format "Jan" | i18n }}{{ $date.Format "Jan" | i18n -}}{{- else -}} {{- $date.Format "Jan" -}}{{- end }} {{ $date.Format "2006" }}
+
{{ $prev = $date.Format "2006"}} {{end}}
diff --git a/themes/buha/layouts/partials/layout/generator/form.html b/themes/buha/layouts/partials/layout/generator/form.html index 7cfd7534..38965166 100644 --- a/themes/buha/layouts/partials/layout/generator/form.html +++ b/themes/buha/layouts/partials/layout/generator/form.html @@ -106,7 +106,63 @@ - + {{ else if eq .input_type "rb" }} + {{ $in0 := .title }} + + {{- $finale := slice -}} + {{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }} + {{ if eq .title "tags" }} + {{ range $pages }} + {{- with .Params.tags -}} + {{- $finale = $finale | append . -}} + {{ end }} + {{ end }} + {{ else if eq .title "foundations" }} + {{ range resources.Match "/foundations/*" }} + {{ $n := path.Base (strings.TrimSuffix (path.Ext .Name) .Name) }} + {{- $finale = $finale | append $n -}} + {{ end }} + {{ range $pages }} + {{- with .Params.foundations -}} + {{- $finale = $finale | append . -}} + {{ end }} + {{ end }} + + {{ else }} + {{ range $pages }} + {{ range .Param $in0 }} + {{- $finale = $finale | append . -}} + {{ end }} + {{ end }} + {{ end }} + {{- $finale = $finale | uniq -}} + +
+
+ {{ .name }} + {{ if ne .expanded true }}{{ partial "layout/generator/expand" (dict "name" (printf "%scat" $in0)) }}{{ end }}{{- if .required -}}{{- " *" -}}{{- end -}} +
+ + + +
+ + +
+
+ {{ range sort $finale }} + + {{ end }} +
+ {{ if .new }} + + + {{ end }} +
+
+ +
+