halogenica / beautifulhugo

Theme for the Hugo static website generator
Other
1.14k stars 602 forks source link

fix: photoswipe doesn't work for <figure> without <a> inside. #402

Closed whatacold closed 1 year ago

whatacold commented 3 years ago

Hi,

I use hugo with Emacs orgmode, the html doesn't have a <a> inside a <figure>, it looks like (or you can take a look at my this post: https://whatacold.io/blog/2021-07-11-babashka-random-password-generator/):

<figure>
<img src="/img/2021-07-11-babashka-random-password-generator.png" alt="/img/2021-07-11-babashka-random-password-generator.png" title="/img/2021-07-11-babashka-random-password-generator.png" /><figcaption>
Generate Random Passwords in No Time
</figcaption>
</figure>

PhotoSwipe doesn't work with that snippet.

whatacold commented 1 year ago

thanks!