small fixes
|
@ -0,0 +1,7 @@
|
|||
[Dolphin]
|
||||
HeaderColumnWidths=733,143,94,163
|
||||
PreviewsShown=false
|
||||
Timestamp=2022,6,22,17,45,55.016
|
||||
Version=4
|
||||
ViewMode=1
|
||||
VisibleRoles=Details_text,Details_size,Details_modificationtime,Details_type,Details_permissions,CustomizedDetails
|
Before Width: | Height: | Size: 73 KiB After Width: | Height: | Size: 73 KiB |
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 394 KiB After Width: | Height: | Size: 394 KiB |
Before Width: | Height: | Size: 111 KiB After Width: | Height: | Size: 111 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 145 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
title: "Volltextsuche"
|
||||
summary: "Seite nach Stichworten durchsuchen"
|
||||
banner: false
|
||||
---
|
||||
{{< search >}}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
{{ partialCached "snippets/header" . }}
|
||||
</header>
|
||||
<div class="main_wrapper">
|
||||
{{ partial "snippets/banner" . -}}
|
||||
{{ block "banner" . -}} {{ partial "snippets/banner" . -}}{{- end }}
|
||||
<main class="main">
|
||||
{{ if not .IsHome}}
|
||||
<button onclick="history.back()" style="align-self: flex-end; margin-top: 1em; padding: 0; background-color: var(--background-body);">{{ if i18n "back" }}{{ i18n "back" }}{{ else }}{{ "back" }}{{ end }}</button>
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
<div>
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
<div>
|
||||
{{ range .Pages }}
|
||||
<a href="{{ .Page.Permalink }}" class="underline" style="margin-right: 1rem;">{{ .Page.Title }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{- $pages := .Data.Pages -}}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .context.Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ $text := "solo" }}
|
||||
{{ $content := .Content }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
@ -6,7 +14,11 @@
|
|||
|
||||
{{ define "content" }}
|
||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||
{{- $pages = where $pages ".Params.when" "ne" nil -}}
|
||||
{{ if eq .Kind "taxonomy" }}
|
||||
{{- $pages = where $pages ".Params.when" "ne" nil -}}
|
||||
{{ else if eq .Kind "term" }}
|
||||
{{- $pages = .Data.Pages -}}
|
||||
{{ end }}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ $text := "solo" }}
|
||||
{{ $content := .Content }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
|
||||
{{ if ne .Content "" }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
@ -6,6 +14,9 @@
|
|||
|
||||
{{ define "content" }}
|
||||
{{- $pages := where .Site.RegularPages "Section" "in" .Site.Params.searchSections -}}
|
||||
{{ if eq .Kind "term" }}
|
||||
{{- $pages = .Data.Pages -}}
|
||||
{{ end }}
|
||||
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
|
||||
{{ end }}
|
||||
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<article>
|
||||
{{- if .Description -}}
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{{ if eq site.Params.debug true }}
|
||||
Title: {{ .context.Title }}<br>
|
||||
Name: {{ .context.Name }}<br>
|
||||
section: {{ .context.Section }}<br>
|
||||
type: {{ .context.Type }}<br>
|
||||
layout: {{ .context.Layout }}<br>
|
||||
{{ if .caller }}caller: {{ .caller }}<br>{{ end }}
|
||||
kind: {{ .context.Kind }}<br>
|
||||
is page: {{ if .context.IsPage }}yes{{end}}<br>
|
||||
{{ end }}
|
|
@ -1,6 +1,6 @@
|
|||
{{ define "debug" }}
|
||||
{{ .Section }}<br>
|
||||
{{ end }}
|
||||
{{ end }}OLD
|
||||
{{ $title := .Title }}
|
||||
{{ $title = singularize $title }}
|
||||
{{ $title = i18n $title }}
|
||||
|
@ -140,4 +140,4 @@
|
|||
{{ if not .IsHome }}<h1 class="{{ $title_class }}">{{ $title }}</h1> {{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
OLD
|
||||
|
|
|
@ -0,0 +1,72 @@
|
|||
{{ $img := .image }}
|
||||
{{ if .Resources.GetMatch .image }}
|
||||
{{ $img = .Resources.GetMatch .image }}
|
||||
{{ else if resources.GetMatch .image }}
|
||||
{{ $img = resources.GetMatch .image }}
|
||||
{{ end }}
|
||||
|
||||
{{ $title := .title }}
|
||||
{{ $good_w := "1920"}}
|
||||
{{ $good_h := "850"}}
|
||||
{{ $banner := .context.Params.banner }}
|
||||
|
||||
{{ $test := true }}
|
||||
{{ if and $img (ne $banner false) }}
|
||||
{{ $tiny := ($img.Resize "640x q90") }}
|
||||
{{ $small := ($img.Resize "768x q90") }}
|
||||
{{ $medium := ($img.Resize "10240x q90") }}
|
||||
{{ $large := ($img.Resize "1366x q90") }}
|
||||
<div class="ttestt banner b" style="background-image: url({{- $img.Permalink -}});">
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
<div class="dev right">
|
||||
{{ $w := $img.Width }}
|
||||
{{ $h := $img.Height }}
|
||||
{{ if lt (int $w) $good_w }}
|
||||
{{ $test = false }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
Width: {{ $w }}px: too small, better {{ $good_w -}}px in width<br>
|
||||
{{ end }}
|
||||
{{ else if gt (int $w) $good_w }}
|
||||
{{ $test = false }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
Width: {{ $w }}px: too big, better {{ $good_w -}}px in width<br>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if lt (int $h) $good_h }}
|
||||
{{ $test = false }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
Height: {{ $h }}px: too small, better {{ $good_h -}}px in height<br>
|
||||
{{ end }}
|
||||
{{ else if gt (int $h) $good_h }}
|
||||
{{ $test = false }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
Height: {{ $h }}px: too big, better {{ $good_h -}}px in height<br>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
{{ if eq $test false }}
|
||||
{{ printf "Please correct %s" $img }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if $title }}<h1 class="title">{{ $title }}</h1> {{ end }}
|
||||
</div>
|
||||
{{ else }}
|
||||
<div class="banner b altbg">
|
||||
{{ if eq hugo.Environment "development" }}
|
||||
{{ $c := "" }}
|
||||
{{ $str := "" }}
|
||||
{{ if eq $banner false }}
|
||||
{{ $c = "black" }}
|
||||
{{ $str = "Info: Banner is turned off for this." }}
|
||||
{{ else }}
|
||||
{{ $str = printf "content/%s/banner* missing.." .section }}
|
||||
{{ end }}
|
||||
<div class="dev right {{ $c }}">
|
||||
{{ $str }}
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ if $title }}<h1 class="title">{{ $title }}</h1> {{ end }}
|
||||
</div>
|
||||
{{ end }}
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ $banner := "banner*" }}
|
||||
{{ if .Resources.GetMatch $banner }}
|
||||
{{ $image = .Resources.GetMatch $banner }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
<article>
|
||||
{{ $metas := dict "when" .Params.when "price" .Params.price "contact_mail" .Params.contact_mail "covid" .Params.covid "insta" .Params.insta }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "content" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
{{ define "banner" }}
|
||||
{{ $image := "" }}
|
||||
{{ if .Resources.GetMatch "banner*" }}
|
||||
{{ $image = .Resources.GetMatch "banner*" }}
|
||||
{{ end }}
|
||||
{{ partial "snippets/banner_new" (dict "context" . "image" $image "title" .Title "section" .Section) }}
|
||||
{{ end }}
|
||||
|
||||
{{ define "intro" }}
|
||||
{{ if ne .Content "" }}
|
||||
{{ partial "snippets/content" (dict "content" .Content) }}
|
||||
|
|