layouts/shortcode: show thumbnails by default (#2)

This commit is contained in:
liushuyu 2020-07-28 01:32:51 -06:00 committed by GitHub
parent 7b0703b7e5
commit 2a7eec6bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View file

@ -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() {

View file

@ -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 }}

View file

@ -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>