mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-24 05:15:43 +01:00
layouts/shortcode: show thumbnails by default (#2)
This commit is contained in:
parent
7b0703b7e5
commit
2a7eec6bef
@ -37,11 +37,11 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "css" }}
|
{{ define "css" }}
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.css" type="text/css" />
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.11.1/baguetteBox.min.css" type="text/css" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ define "scripts" }}
|
{{ define "scripts" }}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.10.0/baguetteBox.min.js" type="text/javascript"></script>
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/baguettebox.js/1.11.1/baguetteBox.min.js" type="text/javascript"></script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.addEventListener("DOMContentLoaded", function() {
|
window.addEventListener("DOMContentLoaded", function() {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
</video>
|
</video>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $src }}" title="{{ $title }}">
|
<a href="{{ $src }}" title="{{ $title }}">
|
||||||
<img src="{{ $src }}" alt="{{ $title }}">
|
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $title }}
|
{{ if $title }}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
</video>
|
</video>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<a href="{{ $src }}" title="{{ $subtitle }}">
|
<a href="{{ $src }}" title="{{ $subtitle }}">
|
||||||
<img src="{{ $src }}" alt="{{ $subtitle }}">
|
<img src="{{ $src }}.jpg" alt="{{ $subtitle }}">
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user