Compare commits

...

2 Commits

Author SHA1 Message Date
Wolf Noble 915f62ddb8
Merge 984bb01c79 into c87c9adece 2023-10-31 09:48:47 +11:00
Wolf Noble 984bb01c79 🚸 🩹 add logic braces to sidestep image sizing when using a vector image for the author 2023-10-26 20:31:15 -05:00
2 changed files with 6 additions and 2 deletions

View File

@ -3,7 +3,9 @@
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "192x192 Center" }}
{{- if ne $authorImage.MediaType.SubType "svg" }}
{{ $authorImage := $authorImage.Fill "192x192 Center" }}
{{- end }}
<img
class="!mb-0 !mt-0 me-4 h-24 w-24 rounded-full"
width="96"

View File

@ -7,7 +7,9 @@
{{ with .Site.Author.image }}
{{ $authorImage := resources.Get . }}
{{ if $authorImage }}
{{ $authorImage := $authorImage.Fill "288x288 Center" }}
{{- if ne $authorImage.MediaType.SubType "svg" }}
{{ $authorImage := $authorImage.Fill "288x288 Center" }}
{{- end }}
<img
class="mb-2 h-36 w-36 rounded-full"
width="144"