diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 71150562..81a778d6 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -2993,6 +2993,10 @@ body:has(#menu-controller:checked) { } } +.medium-zoom-image--opened { + z-index: 100; +} + .first\:mt-8:first-child { margin-top: 2rem; } diff --git a/assets/css/main.css b/assets/css/main.css index ea54fc7d..ab3806dd 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -410,4 +410,9 @@ body:has(#menu-controller:checked) { .article { flex-wrap: nowrap; } +} + + +.medium-zoom-image--opened { + z-index: 100; } \ No newline at end of file diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 7645f475..7ee00ef9 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -15,7 +15,7 @@ enableCodeCopy = true mainSections = ["docs"] # robots = "" -disableImageOptimization = false +disableImageOptimization = true defaultBackgroundImage = "/img/iceland.jpg" diff --git a/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1024x0_resize_box_3.png b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1024x0_resize_box_3.png new file mode 100644 index 00000000..639aed32 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1024x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1320x0_resize_box_3.png b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1320x0_resize_box_3.png new file mode 100644 index 00000000..7dd13dfa Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_1320x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_330x0_resize_box_3.png b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_330x0_resize_box_3.png new file mode 100644 index 00000000..bac1a8d1 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_330x0_resize_box_3.png differ diff --git a/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_660x0_resize_box_3.png b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_660x0_resize_box_3.png new file mode 100644 index 00000000..8e77fa38 Binary files /dev/null and b/exampleSite/resources/_gen/images/docs/shortcodes/featured_huccf4470440ae6b15644c014dfa031fdc_4868633_660x0_resize_box_3.png differ diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 723c1dc2..20b983b9 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,3 +1,4 @@ +{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }} {{ $url := urls.Parse .Destination }} {{ $altText := .Text }} {{ $caption := .Title }} @@ -15,16 +16,24 @@ {{ end }} {{ with $resource }}
+ {{ if $disableImageOptimization }} + {{ $altText }} + {{ else }} {{ $altText }} + {{ end }} {{ with $caption }}
{{ . | markdownify }}
{{ end }}
{{ else }} diff --git a/package-lock.json b/package-lock.json index 4cd6d3a5..58fcf37b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hugo-blowfish-theme", - "version": "2.18.0", + "version": "2.19.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hugo-blowfish-theme", - "version": "2.18.0", + "version": "2.19.1", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index faa58bdc..2a7c315d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hugo-blowfish-theme", - "version": "2.19.0", + "version": "2.19.1", "description": "Blowfish theme for Hugo", "scripts": { "fullinstall": "npm run preinstall && npm install && npm run postinstall",