diff --git a/assets/images/fixit.svg b/assets/images/fixit.svg index 6fdd7222..6755e66d 100644 --- a/assets/images/fixit.svg +++ b/assets/images/fixit.svg @@ -1,4 +1,4 @@ - + diff --git a/assets/images/hugo.svg b/assets/images/hugo.svg index 2af8a1fa..1e4fed06 100644 --- a/assets/images/hugo.svg +++ b/assets/images/hugo.svg @@ -1,6 +1,5 @@ - + {{- end -}} diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 96f573fc..a9680b23 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -8,7 +8,7 @@ {{- with .Site.Params.header.title -}} {{- with .logo -}} - {{- dict "Src" . "Class" "logo" "Alt" $.Site.Title | partial "plugin/image.html" -}} + {{- dict "Src" . "Class" "logo" "Alt" $.Site.Title "Width" 26 "Height" 26 | partial "plugin/image.html" -}} {{- end -}} {{- with .pre -}} {{ . | safeHTML }} @@ -156,7 +156,7 @@ {{- with .Site.Params.header.title -}} {{- with .logo -}} - {{- dict "Src" . "Class" "logo" | partial "plugin/image.html" -}} + {{- dict "Src" . "Class" "logo" "Alt" $.Site.Title "Width" 26 "Height" 26 | partial "plugin/image.html" -}} {{- end -}} {{- with .pre -}} {{ . | safeHTML }} diff --git a/layouts/partials/home/profile.html b/layouts/partials/home/profile.html index 1f7c8382..0af7c68a 100644 --- a/layouts/partials/home/profile.html +++ b/layouts/partials/home/profile.html @@ -28,10 +28,10 @@ {{- $url = .RelPermalink -}} {{- end -}} - {{- dict "Src" $avatar "Alt" $.Site.Params.author.name | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $.Site.Params.author.name "Width" 96 "Height" 96 | partial "plugin/image.html" -}} {{- else -}} - {{- dict "Src" $avatar "Alt" $.Site.Params.author.name | partial "plugin/image.html" -}} + {{- dict "Src" $avatar "Alt" $.Site.Params.author.name "Width" 96 "Height" 96 | partial "plugin/image.html" -}} {{- end -}} {{- end -}} diff --git a/layouts/partials/single/post-author.html b/layouts/partials/single/post-author.html index a9321c1f..61d0d246 100644 --- a/layouts/partials/single/post-author.html +++ b/layouts/partials/single/post-author.html @@ -35,7 +35,7 @@ {{- $content := $author.name | default "Anonymous" -}} {{- $icon := dict "Class" "fa-solid fa-user-circle" -}} {{- if $author.avatar | and $params.authorAvatar -}} - {{- $content = printf "%v %v" (dict "Src" $author.avatar "Class" "avatar" "Alt" $content | partial "plugin/image.html") $content -}} + {{- $content = printf "%v %v" (dict "Src" $author.avatar "Class" "avatar" "Alt" $content "Width" 20 "Height" 20 | partial "plugin/image.html") $content -}} {{- $icon = "" -}} {{- end -}} {{- if $author.link -}} diff --git a/layouts/partials/widgets.html b/layouts/partials/widgets.html index 80a5cb28..d5834bd4 100644 --- a/layouts/partials/widgets.html +++ b/layouts/partials/widgets.html @@ -23,7 +23,7 @@ {{- $githubCorner := .Site.Params.githubCorner -}} {{- if $githubCorner.enable -}} {{- with $githubCorner -}} - {{- $githubImage := `` -}} + {{- $githubImage := `` -}} {{- $options := dict "Destination" .Permalink "Title" .Title "Content" $githubImage "Class" (cond (eq .Position "left") "left" "right" | printf "github-corner %v d-none-mobile") "Noreferrer" false -}} {{- partial "plugin/link.html" $options -}} {{- end -}}