From 3c4ef1595508993be2ad6dda64e0064b6eeea02e Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Tue, 7 Nov 2023 21:54:58 +0000 Subject: [PATCH] Bump the quality of image renders --- config.toml | 6 ++++++ content/facilities/fabrication/index.md | 2 +- content/facilities/social_space/index.md | 2 +- themes/lhs/layouts/blog/single.html | 3 ++- themes/lhs/layouts/shortcodes/image.html | 2 +- 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/config.toml b/config.toml index e3b5527..6d26689 100644 --- a/config.toml +++ b/config.toml @@ -9,6 +9,12 @@ changeFreq = 'weekly' filename = 'sitemap.xml' priority = -1 +[imaging] + bgColor = '#ffffff' + hint = 'photo' + quality = 85 + resampleFilter = 'MitchellNetravali' + [params] company = "Leigh Hackspace CIC" company_number = "09404083" diff --git a/content/facilities/fabrication/index.md b/content/facilities/fabrication/index.md index 9905cbd..a2cfa40 100644 --- a/content/facilities/fabrication/index.md +++ b/content/facilities/fabrication/index.md @@ -3,4 +3,4 @@ title: Fabrication subtitle: Use 3D printers and laser cutters to bring your creations to life. --- -{{< image src="fabrication.png" >}} \ No newline at end of file +{{< image src="fabrication.jpg" >}} \ No newline at end of file diff --git a/content/facilities/social_space/index.md b/content/facilities/social_space/index.md index 9b8a316..10051fb 100644 --- a/content/facilities/social_space/index.md +++ b/content/facilities/social_space/index.md @@ -5,6 +5,6 @@ subtitle: "A social area to relax and run events from." Our social space is the open area that can be used to relax, play some games, or even run an event. The space is fitted with a small stage, a bar, and seats and tables. -![](/facilities/social_space.jpg) +{{< image src="social_space.jpg" >}} The space is available for members and the public (with member support) to run events in. If you're interested in running a regular event or using the space then please get in contact. \ No newline at end of file diff --git a/themes/lhs/layouts/blog/single.html b/themes/lhs/layouts/blog/single.html index 6123d01..31bfafc 100644 --- a/themes/lhs/layouts/blog/single.html +++ b/themes/lhs/layouts/blog/single.html @@ -10,7 +10,8 @@

- + {{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) | resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }} +

diff --git a/themes/lhs/layouts/shortcodes/image.html b/themes/lhs/layouts/shortcodes/image.html index f8d9862..5eb2a2c 100644 --- a/themes/lhs/layouts/shortcodes/image.html +++ b/themes/lhs/layouts/shortcodes/image.html @@ -1,6 +1,6 @@ {{ $img := .Page.Resources.GetMatch (printf "*%s*" (.Get "src")) }} {{ $width := .Get "width" }} -{{ $img = $img.Resize (print (default "1256x" $width) " jpg") }} +{{ $img = $img.Resize (print (default "1264x" $width) " webp") }} {{ $title := .Get "title" }} {{ $class := .Get "class" }}