mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-30 20:34:21 +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>
|
</video>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $src }}" title="{{ $title }}">
|
<a href="{{ $src }}" title="{{ $title }}">
|
||||||
|
{{- if eq $extension "png" -}}
|
||||||
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||||||
|
{{- else -}}
|
||||||
|
<img src="{{ $src }}" alt="{{ $title }}">
|
||||||
|
{{- end -}}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $title }}
|
{{ if $title }}
|
||||||
|
@ -15,7 +15,11 @@
|
|||||||
</video>
|
</video>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $src }}" title="{{ $subtitle }}">
|
<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>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user