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 {
margin-top: 2rem;
}

View file

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

View file

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

View file

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

4
package-lock.json generated
View file

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

View file

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