Compare commits

..

7 Commits

Author SHA1 Message Date
Nuno Coração
7ed77a41ed Merge pull request #915 from nunocoracao/nunocoracao-patch-1
Update package.json
2023-08-15 09:52:00 +01:00
Nuno Coração
9242c1c57f Update package.json 2023-08-15 09:51:50 +01:00
Nuno Coração
da623dc9cc Merge pull request #885 from nunocoracao/dev
🔖 v2.39.0
2023-08-15 09:51:19 +01:00
Nuno Coração
a9ded90dca Merge pull request #861 from MaikelChan/author_images_optimization
The disableImageOptimization setting now affects author images
2023-08-05 16:36:07 +01:00
Nuno Coração
b5ac2766f5 Merge pull request #884 from nunocoracao/883-add-support-for-hugo-v01161
⚙️ Updated theme to support Hugo v0.116.1
2023-08-05 16:33:09 +01:00
Nuno Coração
26900dbd93 updated version 2023-08-05 16:32:31 +01:00
MaikelChan
a6263505f8 The disableImageOptimization setting now affects author images. 2023-07-30 20:42:45 +02:00
7 changed files with 22 additions and 7 deletions

View File

@@ -2,4 +2,4 @@
[module.hugoVersion]
extended = true
min = "0.87.0"
max = "0.115.4"
max = "0.116.1"

View File

@@ -1,8 +1,11 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<div class="flex mt-4">
{{ with .data.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "192x192" }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "192x192" }}
{{ end }}
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
src="{{ $authorImage.RelPermalink }}" />
{{ end }}

View File

@@ -1,8 +1,11 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<div class="flex">
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "192x192" }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "192x192" }}
{{ end }}
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
{{ end }}

View File

@@ -1,3 +1,4 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<article class="max-w-full prose dark:prose-invert">
<div class="relative">
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
@@ -21,7 +22,9 @@
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288" }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "288x288" }}
{{ end }}
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
{{ end }}

View File

@@ -1,3 +1,4 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<article class="max-w-full prose dark:prose-invert">
<div class="relative">
<div class="absolute inset-x-0 bottom-0 h-1/2 bg-gray-100"></div>
@@ -18,7 +19,9 @@
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288" }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "288x288" }}
{{ end }}
<img class="mb-2 rounded-full h-36 w-36" width="144" height="144"
alt="{{ $.Site.Author.name | default " Author" }}" src="{{ $authorImage.RelPermalink }}" />
{{ end }}

View File

@@ -1,3 +1,4 @@
{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }}
<article
class="{{ if not .Site.Params.homepage.showRecent }}
h-full
@@ -7,7 +8,9 @@
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288" }}
{{ if not $disableImageOptimization }}
{{ $authorImage = $authorImage.Fill "288x288" }}
{{ end }}
<img
class="mb-2 rounded-full h-36 w-36"
width="144"

View File

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