mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-24 01:15:40 +01:00
shortcodes: do not request thumbnails if the image is jpg
This commit is contained in:
parent
68a67d2bb4
commit
cd51353e9b
@ -14,7 +14,11 @@
|
||||
</video>
|
||||
{{ else }}
|
||||
<a href="{{ $src }}" title="{{ $title }}">
|
||||
{{- if eq $extension "png" -}}
|
||||
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||||
{{- else -}}
|
||||
<img src="{{ $src }}" alt="{{ $title }}">
|
||||
{{- end -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if $title }}
|
||||
|
@ -15,7 +15,11 @@
|
||||
</video>
|
||||
{{ else }}
|
||||
<a href="{{ $src }}" title="{{ $subtitle }}">
|
||||
<img src="{{ $src }}.jpg" alt="{{ $subtitle }}">
|
||||
{{- if eq $extension "png" -}}
|
||||
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||||
{{- else -}}
|
||||
<img src="{{ $src }}" alt="{{ $title }}">
|
||||
{{- end -}}
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user