From bf11268599ad09faac926236e89db4cdb50f0c82 Mon Sep 17 00:00:00 2001 From: Quentin Duchemin Date: Wed, 9 Aug 2023 21:08:28 +0200 Subject: [PATCH] Blur image server side to avoid performance issues --- config.yaml | 2 + themes/chosto/layouts/partials/head.html | 1 + themes/chosto/layouts/partials/header.html | 43 +++++++++++----------- themes/chosto/static/css/custom.css | 7 +--- 4 files changed, 26 insertions(+), 27 deletions(-) diff --git a/config.yaml b/config.yaml index c929c19..cdbff98 100644 --- a/config.yaml +++ b/config.yaml @@ -21,6 +21,8 @@ markup: renderer: # Render newlines as
hardWraps: true + # Render HTML in MD files, necessary for superscript + unsafe: true tableOfContents: endLevel: 3 ordered: false diff --git a/themes/chosto/layouts/partials/head.html b/themes/chosto/layouts/partials/head.html index 985290e..0a3b36b 100644 --- a/themes/chosto/layouts/partials/head.html +++ b/themes/chosto/layouts/partials/head.html @@ -16,6 +16,7 @@ {{ $image = . }} {{ end }} {{ $image = $image.Resize "3000x" }} + {{ $image := $image | images.Filter (images.GaussianBlur 7) }}