mirror of
https://github.com/nunocoracao/blowfish.git
synced 2025-05-21 17:41:54 +02:00
Update big.html to tolerate svgs
Turns out you can't specify width/height with vectors... odd
This commit is contained in:
parent
1e130fbe9a
commit
8cf476e37e
1 changed files with 5 additions and 1 deletions
|
@ -6,7 +6,11 @@
|
|||
{{- $alt := .Page.Title -}}
|
||||
{{- with .Page.Params.alt }}{{ $alt = . }}{{ end -}}
|
||||
{{- with $featured -}}
|
||||
{{ if or (eq .MediaType.SubType "svg" ) ($disableImageOptimization) }}
|
||||
{{ if eq .MediaType.SubType "svg" }}
|
||||
{{ with . }}
|
||||
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" src="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
{{ else if $disableImageOptimization }}
|
||||
{{ with . }}
|
||||
<img class="w-full rounded-lg single_hero_round nozoom" alt="{{ $alt }}" width="{{ .Width }}" height="{{ .Height }}" src="{{ .RelPermalink }}">
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Reference in a new issue