Bump the quality of image renders

This commit is contained in:
2023-11-07 21:54:58 +00:00
parent 8ad5538cdf
commit 3c4ef15955
5 changed files with 11 additions and 4 deletions

View File

@@ -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"

View File

@@ -3,4 +3,4 @@ title: Fabrication
subtitle: Use 3D printers and laser cutters to bring your creations to life.
---
{{< image src="fabrication.png" >}}
{{< image src="fabrication.jpg" >}}

View File

@@ -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.

View File

@@ -10,7 +10,8 @@
<article class="media">
<figure class="media-left">
<p class="image is-64x64">
<img class="is-rounded" src="https://www.gravatar.com/avatar/{{ sha256 .Params.author_email }}">
{{ $avatar := resources.GetRemote (print "https://www.gravatar.com/avatar/" (sha256 .Params.author_email)) | resources.Copy (print "images/avatars/" (sha256 .Params.author_email) ".jpg") }}
<img class="is-rounded" src="{{ $avatar.Permalink }}">
</p>
</figure>
<div class="media-content">

View File

@@ -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" }}
<figure class="image{{ if $class }} {{ $class }}{{ end }}">