Wolf Noble 2023-11-25 13:26:36 +08:00 committed by GitHub
commit 497ca5aad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

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