small fixes for main release

This commit is contained in:
Nuno Coração 2022-12-21 23:46:19 +00:00
parent 23474cbdb9
commit 7302083428
10 changed files with 26 additions and 8 deletions

View file

@ -2993,6 +2993,10 @@ body:has(#menu-controller:checked) {
} }
} }
.medium-zoom-image--opened {
z-index: 100;
}
.first\:mt-8:first-child { .first\:mt-8:first-child {
margin-top: 2rem; margin-top: 2rem;
} }

View file

@ -411,3 +411,8 @@ body:has(#menu-controller:checked) {
flex-wrap: nowrap; flex-wrap: nowrap;
} }
} }
.medium-zoom-image--opened {
z-index: 100;
}

View file

@ -15,7 +15,7 @@ enableCodeCopy = true
mainSections = ["docs"] mainSections = ["docs"]
# robots = "" # robots = ""
disableImageOptimization = false disableImageOptimization = true
defaultBackgroundImage = "/img/iceland.jpg" defaultBackgroundImage = "/img/iceland.jpg"

View file

@ -1,3 +1,4 @@
{{ $disableImageOptimization := .Page.Site.Params.disableImageOptimization | default false }}
{{ $url := urls.Parse .Destination }} {{ $url := urls.Parse .Destination }}
{{ $altText := .Text }} {{ $altText := .Text }}
{{ $caption := .Title }} {{ $caption := .Title }}
@ -15,6 +16,13 @@
{{ end }} {{ end }}
{{ with $resource }} {{ with $resource }}
<figure> <figure>
{{ if $disableImageOptimization }}
<img
class="my-0 rounded-md"
src="{{ .RelPermalink }}"
alt="{{ $altText }}"
/>
{{ else }}
<img <img
class="my-0 rounded-md" class="my-0 rounded-md"
srcset=" srcset="
@ -25,6 +33,7 @@
src="{{ (.Resize "660x").RelPermalink }}" src="{{ (.Resize "660x").RelPermalink }}"
alt="{{ $altText }}" alt="{{ $altText }}"
/> />
{{ end }}
{{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }} {{ with $caption }}<figcaption>{{ . | markdownify }}</figcaption>{{ end }}
</figure> </figure>
{{ else }} {{ else }}

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.18.0", "version": "2.19.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.18.0", "version": "2.19.1",
"hasInstallScript": true, "hasInstallScript": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View file

@ -1,6 +1,6 @@
{ {
"name": "hugo-blowfish-theme", "name": "hugo-blowfish-theme",
"version": "2.19.0", "version": "2.19.1",
"description": "Blowfish theme for Hugo", "description": "Blowfish theme for Hugo",
"scripts": { "scripts": {
"fullinstall": "npm run preinstall && npm install && npm run postinstall", "fullinstall": "npm run preinstall && npm install && npm run postinstall",