Commit Graph
9 Commits
Author SHA1 Message Date
Jimmy Cai 4d6b65f63c fix: PhotoSwipe not getting the real image dimensions
This is because `img.width.toString()` returns the `<img>` element dimension, not the real image dimension (stored in the `width` attribute).

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/934
2024-02-05 17:43:25 +01:00
Jimmy CaiandGitHub 9d4ab5afcf feat: upgrade to PhotoSwipe v5 2022-06-12 12:10:17 +00:00
Jimmy CaiandGitHub 6f60f4f552 fix: disable external image lightbox (#525) 2022-03-04 10:31:57 +01:00
Jimmy CaiandGitHub 0fbbc12949 fix: check if paragraph exists before accessing it's textContent
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/490
2022-02-12 13:23:38 +00:00
Jimmy CaiandGitHub 88beecd101 fix: hyperlinked image (#485)
* fix: hyperlinked image

closes https://github.com/CaiJimmy/hugo-theme-stack/issues/410

* feat: add support to inline images

* Remove unused code

* Remove data-alt-html
2022-02-06 19:58:10 +01:00
Jimmy CaiandGitHub 626265bcfd refactor(article): better support for svg and external images (#326) 2021-08-25 12:20:15 +02:00
Jimmy CaiandGitHub 31c42bcfe7 refactor(gallery): rewrite gallery (#79)
closes https://github.com/CaiJimmy/hugo-theme-stack/issues/70
2020-12-22 19:35:37 +01:00
Jimmy Cai fa0f8fa365 feat(gallery): load PhotoSwipe lib from JSDelivr 2020-10-04 15:59:56 +02:00
Jimmy Cai c698d944e6 🎉 Initial commit 2020-08-22 13:20:08 +02:00