From 73478fbb995181c0fc15090d9abeabf7d4373f1c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 12 Nov 2026 10:31:07 +0100 Subject: feat: enlarge article images on click A shared native shows the clicked image at up to 95% of the viewport. Esc or a click closes it and focus returns to the image. Images are keyboard-reachable (Enter/Space). Linked images are skipped. Loaded on single pages only, styled inline so no CSS rebuild is needed. Co-Authored-By: Claude Opus 5.5 --- layouts/_default/baseof.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layouts/_default/baseof.html') diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 50bdf39..7aa13cc 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -111,6 +111,8 @@ {{ if eq .Kind "page" }} {{ $codeScript := resources.Get "js/code-copy.js" | minify }} + {{ $zoomScript := resources.Get "js/image-zoom.js" | minify }} + {{ end }} -- cgit v1.2.3