mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 20:21:54 +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 . }}
|
{{ $authorImage := resources.Get . }}
|
||||||
{{ if $authorImage }}
|
{{ if $authorImage }}
|
||||||
{{ if not $disableImageOptimization }}
|
{{ if not $disableImageOptimization }}
|
||||||
{{ $authorImage = $authorImage.Fill "288x288" }}
|
{{- if not (eq $authorImage.MediaType.SubType "svg") -}}
|
||||||
|
{{ $authorImage = $authorImage.Fill "288x288" }}
|
||||||
|
{{- end -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<img
|
<img
|
||||||
class="mb-2 rounded-full h-36 w-36"
|
class="mb-2 rounded-full h-36 w-36"
|
||||||
|
{{ if not (eq $authorImage.MediaType.SubType "svg") }}
|
||||||
width="144"
|
width="144"
|
||||||
height="144"
|
height="144"
|
||||||
|
{{ end }}
|
||||||
alt="{{ $.Site.Author.name | default "Author" }}"
|
alt="{{ $.Site.Author.name | default "Author" }}"
|
||||||
src="{{ $authorImage.RelPermalink }}"
|
src="{{ $authorImage.RelPermalink }}"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue