mirror of
https://github.com/yuzu-emu/shared-bulma-theme.git
synced 2024-11-24 05:25:38 +01:00
layouts/shortcode: show thumbnails by default (#2)
This commit is contained in:
parent
7b0703b7e5
commit
2a7eec6bef
@ -37,11 +37,11 @@
|
||||
{{ end }}
|
||||
|
||||
{{ 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 }}
|
||||
|
||||
{{ 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">
|
||||
window.addEventListener("DOMContentLoaded", function() {
|
||||
|
@ -14,7 +14,7 @@
|
||||
</video>
|
||||
{{ else }}
|
||||
<a href="{{ $src }}" title="{{ $title }}">
|
||||
<img src="{{ $src }}" alt="{{ $title }}">
|
||||
<img src="{{ $src }}.jpg" alt="{{ $title }}">
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if $title }}
|
||||
|
@ -15,7 +15,7 @@
|
||||
</video>
|
||||
{{ else }}
|
||||
<a href="{{ $src }}" title="{{ $subtitle }}">
|
||||
<img src="{{ $src }}" alt="{{ $subtitle }}">
|
||||
<img src="{{ $src }}.jpg" alt="{{ $subtitle }}">
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user