mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 23:01:52 +02:00
Update background.html to tolerate svg author images
This commit is contained in:
parent
818e7dd007
commit
1d103c1451
1 changed files with 4 additions and 2 deletions
|
@ -23,9 +23,11 @@
|
|||
{{ $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" width="144" height="144"
|
||||
<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 }}" />
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue