From 19afcca7715c09cd8991e03855df3042a71a4c95 Mon Sep 17 00:00:00 2001 From: MoritzWeber0 Date: Tue, 27 May 2025 21:36:43 +0200 Subject: [PATCH] fix: Detection of image in pagefind was broken --- layouts/country/single.html | 2 +- layouts/operator/single.html | 2 +- layouts/partials/logo.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/country/single.html b/layouts/country/single.html index dc6823c3..cc23ef79 100644 --- a/layouts/country/single.html +++ b/layouts/country/single.html @@ -14,7 +14,7 @@
{{ $object := replace .Path (printf "/%s/" .Page.Type) "" }} {{ $image := resources.Get (printf "images/flags/%s.webp" $object) }} - +

{{ .Title }}

{{ partial "updateDate.html" . }} diff --git a/layouts/operator/single.html b/layouts/operator/single.html index fa3e16e8..34c44564 100644 --- a/layouts/operator/single.html +++ b/layouts/operator/single.html @@ -12,7 +12,7 @@ {{ $object := replace .Path (printf "/%s/" .Page.Type) "" }} {{ $logo := resources.Get (printf "images/logos/%s.svg" $object) }} {{ if $logo }} - + {{ end }}

{{ .Title }}

diff --git a/layouts/partials/logo.html b/layouts/partials/logo.html index 2ca52219..a3cfd0b3 100644 --- a/layouts/partials/logo.html +++ b/layouts/partials/logo.html @@ -1,4 +1,4 @@ {{ $logo := resources.Get (printf "/images/logos/%s.svg" .) }} {{ if $logo }} - + {{ end }}