diff --git a/themes/buha/layouts/_default/taxonomy.html b/themes/buha/layouts/_default/taxonomy.html index b27521e..72b10c4 100644 --- a/themes/buha/layouts/_default/taxonomy.html +++ b/themes/buha/layouts/_default/taxonomy.html @@ -1,12 +1,12 @@ {{ define "content" }} -
{{ if eq .Kind "taxonomy" }} +
{{ range .Pages }} {{ .Page.Title }} {{ end }} +
{{ else }} {{- $pages := .Data.Pages -}} {{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }} {{ end }} -
{{ end }} diff --git a/themes/buha/layouts/news_old/list.html b/themes/buha/layouts/news_old/list.html deleted file mode 100644 index 97b0279..0000000 --- a/themes/buha/layouts/news_old/list.html +++ /dev/null @@ -1,33 +0,0 @@ -{{ define "intro" }} - {{ if ne .Content "" }} - {{ partial "snippets/content" (dict "content" .Content) }} - {{ end }} -{{ end }} - - -{{ define "content" }} - {{- $paginator := "" -}} - {{- $partial := "snippets/gen_list" -}} - {{- $paginate := true -}} - {{- $pages := .Data.Pages -}} - - {{ $partial = string (printf "news/%s" $partial) }} - {{ partial $partial (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" $paginate) }} -{{ end }} - -{{ define "sidebar" }} - {{ if gt .Site.Taxonomies.categories 0 }} - - {{ end }} -{{ end }} diff --git a/themes/buha/layouts/news_old/single.html b/themes/buha/layouts/news_old/single.html deleted file mode 100644 index 57b389e..0000000 --- a/themes/buha/layouts/news_old/single.html +++ /dev/null @@ -1,147 +0,0 @@ -{{ define "content" }} -
- {{ $metas := dict "when" .Params.when "price" .Params.price "contact_mail" .Params.contact_mail "covid" .Params.covid "insta" .Params.insta }} - {{ $banner := slice }} - {{ $image := slice }} - {{ $thumb := "" }} - {{ if .Resources.GetMatch "banner*" }} - {{ $banner = slice (.Resources.GetMatch "banner*") }} - {{ end }} - {{ if .Resources.ByType "image" }} - {{ $image = .Resources.ByType "image" }} - {{ end }} - {{ $image = (index (complement $banner $image) 0) }} - {{ if $banner }} - {{ $image = (index $banner 0) }} - {{ end }} - {{ $image = .Resources.GetMatch (string $image) }} - {{ if ne $image nil }} - {{ $thumb1 := $image.Fill "1280x480 smart"}} - {{ $thumb = $image}} - {{ end }} - - - {{ partial "snippets/article_metadata" $metas }} - - {{- if .Description -}} -

{{ .Description }}

- {{ end }} - - {{ $count_href := .TableOfContents | strings.Count "href" }} - {{ if ge $count_href 4 }} -
- Inhaltsverzeichnis -
- {{ .TableOfContents }} -
-
- {{ end }} - - {{ $content := .Content }} - - {{ if or .Content (.Resources.ByType "image")}} -
- {{- if .Content -}} - {{- $content -}} - {{ end }} - {{ if .Resources.ByType "image" }} - {{ range .Resources.ByType "image" }} - {{ $picname := . }} - {{ if not (or (in $content $picname ) (hasPrefix $picname "banner") )}} - - {{ . }}
-
- {{ end }} - {{ end }} - {{ end }} -
- {{ end }} -
-{{ end }} - -{{ define "sidebar" }} - {{ if ne .Type "tools" }} - - {{ end }} -{{ end }} - -{{ define "inner_footer" }} - {{ if and (eq .Kind "page") (or (eq .Section "news") (eq .Section "events") (eq .Section "about")) }} -
- {{ with .Params.foundations }} -
Träger der Veranstaltung:
-
- {{ range . }} - {{ $l := . }} - {{ $url := "" }} - {{ if isset site.Params.foundations $l }} - {{ $url = index site.Params.foundations $l }} - {{ end }} - - - {{- $res_im := resources.GetMatch (printf "/images/foundations/%s*" $l ) -}} - {{ if $res_im }} -
- {{ if $url }}{{ end }} {{ if $url }}{{ end }} -
- {{ else }} - {{ if eq hugo.Environment "development" }} -
- assets/images/foundations/{{- $l -}} .* missing -
- {{ else }} - picture missing. - {{ end }} - {{ end }} - {{ end }} -
- {{ end }} -
-
-
{{ if i18n "created" }}{{ i18n "created" }}{{ else }}{{ "Created" }}{{ end }}:
-
{{ .Date | time.Format ":date_full" }}
-
- {{ if ne .Date .Lastmod }} -
-
{{ if i18n "lastmod" }}{{ i18n "lastmod" }}{{ else }}{{ "Last modification" }}{{ end }}:
-
{{ .Lastmod | time.Format ":date_full" }}
-
- {{ end }} -
-
- {{ end }} -{{ end }}