From 8d79666138dd99613198e4bdb5c889f552850fb0 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Sat, 2 Sep 2023 18:29:28 +0200 Subject: [PATCH] Add link to original background images --- themes/chosto/layouts/partials/head.html | 8 ++++---- themes/chosto/layouts/partials/header.html | 4 ++-- themes/chosto/layouts/partials/navbar.html | 2 +- themes/chosto/static/css/custom.css | 11 +++++++++++ 4 files changed, 18 insertions(+), 7 deletions(-) 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 */}}