Fixed paths in templates. Added more demo content

This commit is contained in:
Sebastian 2024-05-11 17:19:33 +02:00
parent 285d5e2147
commit b474bdf10a
45 changed files with 65 additions and 84 deletions

View file

@ -35,11 +35,11 @@
</main>
<script type="module">
import PhotoSwipeLightbox from '/js/photoswipe/photoswipe-lightbox.esm.min.js';
import PhotoSwipeLightbox from '{{ get_url(path="js/photoswipe/photoswipe-lightbox.esm.min.js") }}';
const lightbox = new PhotoSwipeLightbox({
gallery: '.gallery',
children: 'a',
pswpModule: () => import('/js/photoswipe/photoswipe.esm.min.js')
pswpModule: () => import('{{ get_url(path="js/photoswipe/photoswipe.esm.min.js") }}')
});
lightbox.init();
</script>