From 257ed5aa148e0b341a43946b0740c0682c03a36d Mon Sep 17 00:00:00 2001 From: teldra Date: Wed, 22 Jun 2022 18:24:04 +0200 Subject: [PATCH] small fixes --- themes/buha/layouts/_default/single.html | 90 ------------------------ themes/buha/layouts/posts/single.html | 2 - 2 files changed, 92 deletions(-) delete mode 100644 themes/buha/layouts/_default/single.html diff --git a/themes/buha/layouts/_default/single.html b/themes/buha/layouts/_default/single.html deleted file mode 100644 index 0bf94c8..0000000 --- a/themes/buha/layouts/_default/single.html +++ /dev/null @@ -1,90 +0,0 @@ -{{ define "content" }} - {{ if .Layout }} - {{ $partial := printf "layout/%s" .Layout }} -
- {{ partial $partial (dict "context" . "content" .Content) }} -
- {{ end }} -{{ end }} - -{{ define "sidebar" }} - {{ if ne .Type "tools" }} - - {{ end }} -{{ end }} - -{{ define "pagefooter" }} - {{ 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 }} diff --git a/themes/buha/layouts/posts/single.html b/themes/buha/layouts/posts/single.html index 2fe9343..7fef264 100644 --- a/themes/buha/layouts/posts/single.html +++ b/themes/buha/layouts/posts/single.html @@ -118,8 +118,6 @@ {{ 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 }}