From b0de0e98957e4a40b2e236561d94b7107302e3c3 Mon Sep 17 00:00:00 2001 From: PCloud Date: Thu, 23 May 2024 11:22:16 +0100 Subject: [PATCH] refactor: restore light gallary --- layouts/partials/plugin/image.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html index e63d11bea..96e71d539 100644 --- a/layouts/partials/plugin/image.html +++ b/layouts/partials/plugin/image.html @@ -9,9 +9,9 @@ - Resources: If the image is a page resource, this parameter is required. It is the .Resources of the page. - Optim: optimisation parameter, defined like {{- $optim := slice - (dict "Process" "fill 800x240 Center webp q75" "descriptor" "800w") - (dict "Process" "fill 1200x360 Center webp q75" "descriptor" "1200w") - (dict "Process" "fill 1600x480 Center webp q75" "descriptor" "1600w") + (dict "Process" "resize 800x Center webp q75" "descriptor" "800w") + (dict "Process" "resize 1200x Center webp q75" "descriptor" "1200w") + (dict "Process" "resize 1600x Center webp q75" "descriptor" "1600w") -}} See https://gohugo.io/content-management/image-processing/ for more information. */}} @@ -47,11 +47,17 @@ {{- end -}} {{- $src := $resource.RelPermalink | default .Src -}} -{{- $alt := .Alt | default .Title | default "alt text" -}} +{{- $alt := .Alt | default .Title -}} {{- $height := .Height | default $resource.Height | default "" -}} {{- $width := .Width | default $resource.Width | default "" -}} +{{- if .Linked -}} + +{{- end -}} +{{- if .Linked -}} + +{{- end -}} {{/*