Skip to content

Commit

Permalink
Upgrade default version of photoswipt to 5.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
waynezhang committed Dec 29, 2023
1 parent 2e5a125 commit 34448b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/static/templates/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{- if .Config.site.description }}
<meta property="og:description" content="{{ .Config.site.description }}">
{{- end }}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.2.2/photoswipe.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.4.2/photoswipe.css">
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
<link rel="stylesheet" href="assets/style.css">
</head>
Expand Down Expand Up @@ -80,8 +80,8 @@
(new JustifiedGrid(".section-images-{{ .Slug }}", options)).renderItems();
{{- end }}

import PhotoSwipeLightbox from 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.2.2/photoswipe-lightbox.esm.min.js';
import PhotoSwipe from 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.2.2/photoswipe.esm.min.js';
import PhotoSwipeLightbox from 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.4.2/photoswipe-lightbox.esm.min.js';
import PhotoSwipe from 'https://cdnjs.cloudflare.com/ajax/libs/photoswipe/5.4.2/photoswipe.esm.min.js';

const lightbox = new PhotoSwipeLightbox({
pswpModule: PhotoSwipe,
Expand Down

0 comments on commit 34448b1

Please sign in to comment.