Closed Anthop-2 closed 2 years ago
Hi @Anthop-2
Thanks for raising this.
Can you please test for me if the following works:
<link rel="stylesheet" href="{{ "css/hugo-easy-gallery.css" | relURL }} />
If that works it would be a more elegant solution.
It works. Thank you.
Actually .js
should be also loaded with relURL
. I created a pull request #47
load-photoswipe.js
andhugo-easy-gallery.css
are not imported correctly when the site is configured with a path, for example: https://www.example.com/mysite/This appears to be due to the fact that the paths are hard coded relative paths in
figure.html
,gallery.html
, andload-photoswipe.html
.For example, in figure.html, changing:
to:
should address the issue.