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

View File

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

View File

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