mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-23 12:11:52 +02:00
Update author-extra.html to tolerate SVGs
This commit is contained in:
parent
8cf476e37e
commit
f4e18cf468
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,9 @@
|
||||||
{{ $authorImage := resources.Get . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ if not $disableImageOptimization }}
|
{{ if not $disableImageOptimization }}
|
||||||
{{ $authorImage = $authorImage.Fill "192x192" }}
|
{{ if not (eq $authorImage.MediaType.SubType "svg") -}}
|
||||||
|
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img class="!mt-0 !mb-0 h-24 w-24 rounded-full ltr:mr-4 rtl:ml-4" width="96" height="96"
|
<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 }}" />
|
src="{{ $authorImage.RelPermalink }}" />
|
||||||
|
|
Loading…
Add table
Reference in a new issue