mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 04:41:53 +02:00
Update profile.html to tolerate SVGs
This is getting a little silly.
This commit is contained in:
parent
f4e18cf468
commit
818e7dd007
1 changed files with 5 additions and 1 deletions
|
@ -9,12 +9,16 @@
|
|||
{{ $authorImage := resources.Get . }}
|
||||
{{ if $authorImage }}
|
||||
{{ if not $disableImageOptimization }}
|
||||
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||
{{- if not (eq $authorImage.MediaType.SubType "svg") -}}
|
||||
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||
{{- end -}}
|
||||
{{ end }}
|
||||
<img
|
||||
class="mb-2 rounded-full h-36 w-36"
|
||||
{{ if not (eq $authorImage.MediaType.SubType "svg") }}
|
||||
width="144"
|
||||
height="144"
|
||||
{{ end }}
|
||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
||||
src="{{ $authorImage.RelPermalink }}"
|
||||
/>
|
||||
|
|
Loading…
Add table
Reference in a new issue