diff --git a/themes/chosto/layouts/partials/head.html b/themes/chosto/layouts/partials/head.html index 85a93c8..95cf196 100644 --- a/themes/chosto/layouts/partials/head.html +++ b/themes/chosto/layouts/partials/head.html @@ -10,13 +10,13 @@ {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{ end -}} {{/* Default to home image */}} - {{ $image := resources.Get "img/home.jpg" }} + {{ $originalImage := resources.Get "img/home.jpg" }} {{/* If header image exists in current context, use it instead */}} {{ with .Resources.GetMatch "top.jpg" }} - {{ $image = . }} + {{ $originalImage = . }} {{ end }} - {{ $image = $image.Resize "3000x" }} - {{ $image := $image | images.Filter (images.GaussianBlur 7) }} + {{ $image := $originalImage.Resize "3000x" }} + {{ $image = $image | images.Filter (images.GaussianBlur 7) }} {{/* tbh I am too lazy to extend Bulma, so put dirty CSS directives here to be able to use Hugo templating system */}}