Skip to content

Commit c143300

Browse files
committed
photoswipe - fix static URL
1 parent b00a247 commit c143300

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sigal/themes/photoswipe/templates/album.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
{% block extra_head %}
55
<link rel="stylesheet" href="{{ theme.url }}/photoswipe.css">
66
<script type="module">
7-
import PhotoSwipeLightbox from '/static/photoswipe-lightbox.esm.min.js';
8-
import PhotoSwipe from '/static/photoswipe.esm.min.js';
9-
import PhotoSwipeDynamicCaption from '/static/photoswipe-dynamic-caption-plugin.esm.min.js';
10-
import PhotoSwipeFullscreen from '/static/photoswipe-fullscreen.esm.min.js';
11-
import PhotoSwipeVideoPlugin from '/static/photoswipe-video-plugin.esm.min.js';
7+
import PhotoSwipeLightbox from '{{ theme.url }}/photoswipe-lightbox.esm.min.js';
8+
import PhotoSwipe from '{{ theme.url }}/photoswipe.esm.min.js';
9+
import PhotoSwipeDynamicCaption from '{{ theme.url }}/photoswipe-dynamic-caption-plugin.esm.min.js';
10+
import PhotoSwipeFullscreen from '{{ theme.url }}/photoswipe-fullscreen.esm.min.js';
11+
import PhotoSwipeVideoPlugin from '{{ theme.url }}/photoswipe-video-plugin.esm.min.js';
1212

1313
const lightbox = new PhotoSwipeLightbox({
1414
gallery: '.gallery',

0 commit comments

Comments
 (0)