mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 23:21: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 . }}
|
||||
{{ if $authorImage }}
|
||||
{{ if not $disableImageOptimization }}
|
||||
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||
{{ if not (eq $authorImage.MediaType.SubType "svg") -}}
|
||||
{{ $authorImage = $authorImage.Fill "192x192" }}
|
||||
{{ end }}
|
||||
{{ 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 }}" />
|
||||
|
@ -34,4 +36,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue