{{ partial "seo.html" . }} {{- if .IsHome -}} Ingenieurbüro für PV, Speicher & Ladeinfrastruktur | AMPERION {{- else -}} {{- with .Params.meta_title -}} {{ . }} {{- else -}} {{ .Title }} | AMPERION {{- end -}} {{- end -}} {{ if or (eq site.BaseURL "/") (eq site.BaseURL "http://localhost:1313/") (eq site.BaseURL "http://examplesite.org/") (eq site.BaseURL "https://examplesite.org/") (eq site.BaseURL "http://examplesite.com/") (eq site.BaseURL "https://examplesite.com/")}}{{else}} {{ end }} {{ if not .IsTranslated }} {{ end }} {{ if .IsTranslated }} {{ range .AllTranslations }} {{ end }} {{ end }} {{ with site.Params.author }}{{ end }} {{ hugo.Generator }} {{ with .Params.preload_images }} {{ range . }} {{ end }} {{ end }} {{ with .Params.robots }}{{ end }} {{ $favicon := site.Params.favicon }} {{ if $favicon }} {{ if fileExists (add `assets/` $favicon) }} {{ $fav := resources.Get $favicon }} {{ $f16 := $fav.Resize "16x png" }} {{ $f32 := $fav.Resize "32x png" }} {{ $f180 := $fav.Resize "180x png" }} {{ end }} {{ end }} {{ $image_path := .Params.image | default site.Params.image }} {{ $image_path_local := printf "assets/%s" $image_path }} {{ $image_ext := trim (path.Ext $image_path | lower) "." }} {{/* Titel & Beschreibung für OG/Twitter */}} {{ $ogt := cond .IsHome "Ingenieurbüro für PV, Speicher & Ladeinfrastruktur | AMPERION" (cond .Params.meta_title .Params.meta_title (printf "%s | AMPERION" .Title)) }} {{ $desc := .Params.meta_description | default site.Params.description }} {{ $isArticle := in (slice "post" "posts" "blog" "blogs" "news") .Section }} {{ with $desc }}{{ end }} {{ if fileExists $image_path_local }} {{ if ne $image_ext "svg" }} {{ with (imageConfig $image_path_local) }} {{ if (and (gt .Width 144) (gt .Height 144)) }} {{ end }} {{ end }} {{ end }} {{ end }} {{ with $desc }}{{ end }} {{ if templates.Exists "partials/ld-org.html" }} {{ partial "ld-org.html" . }} {{ end }}