diff --git a/config/_default/params.toml b/config/_default/params.toml index d05bad8b..21bc0891 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -45,6 +45,8 @@ featured_expire = "8" items_per_list = 5 +pictureQuality = 50 + # data for your imprint and contact page [imprintdata] tel = "(+) 49 5141 907 927" diff --git a/themes/buha/layouts/partials/snippets/banner.html b/themes/buha/layouts/partials/snippets/banner.html deleted file mode 100644 index dd154abb..00000000 --- a/themes/buha/layouts/partials/snippets/banner.html +++ /dev/null @@ -1,143 +0,0 @@ -{{ define "debug" }} - {{ .Section }}
-{{ end }}OLD -{{ $title := .Title }} -{{ $title = singularize $title }} -{{ $title = i18n $title }} -{{ if not $title }} - {{ $title = .Title }} -{{ end }} -{{ $good_w := "1920"}} -{{ $good_h := "850"}} -{{ $what := "none" }} -{{ $img := "" }} -{{ if eq .Kind "home" }} - {{ $what = "home" }} -{{ else if eq .Kind "term" }} - {{ $what = printf "term/%s" (anchorize .Title) }} -{{ else if eq .Kind "taxonomy" }} - {{ $what = .Data.Singular }} -{{ else }} - {{ with .File }} - {{ $what = .File.ContentBaseName }} - {{ end }} -{{ end }} -{{ $title_class := safeCSS "title" }} -{{ $css := safeCSS "b" }} -{{ if .IsHome }} - {{ $css = safeCSS "b_index" }} - {{ $title_class = safeCSS "title_index" }} -{{ end }} -{{ $banner := string (printf "/images/banner/%s*" $what) }} -{{ if resources.GetMatch $banner }} - {{ $img = resources.GetMatch $banner }} -{{ end }} -{{ $single := false }} -{{ if and (in .File "news/") (not (in .File "_index"))}} - {{ $single = true }} -{{ end }} -{{ $b := true }} -{{ $slug := "" }} -{{ with .File }} - {{ $slug = anchorize .ContentBaseName }} -{{ end }} -{{ if and $img (ne .Params.banner false) }} - {{ if .Resources.Match "banner*" }} - {{ $img = .Resources.GetMatch "banner*" }} - {{ end }} - {{ if .Resources.ByType "image" }} - {{ $img = index (.Resources.ByType "image") 0 }} - {{ end }} - {{ if $img }} - {{ $tiny := ($img.Resize "640x q90") }} - {{ $small := ($img.Resize "768x q90") }} - {{ $medium := ($img.Resize "10240x q90") }} - {{ $large := ($img.Resize "1366x q90") }} - - - - - {{ end }} -{{ else }} -