hellotham / hello-astro

Hello Astro is a multi purpose Astro starter theme written in Typescript, TailwindCSS and AlpineJS. It supports Markdown and MDX based pages and blog posts.
https://hellotham.github.io/hello-astro
MIT License
158 stars 55 forks source link

PhotoSwipe is broken #9

Closed snoopy21 closed 1 year ago

snoopy21 commented 1 year ago

Since the last update, photos in a gallery are opening as @astroimage and not in a lightbox.

ChristineTham commented 1 year ago

Hi, thanks for raising this issue.

This appears to be due to a bug in Astro v2.x - hoisted scripts and full resolution images do not respect the base configuration property which is used in this starter to generate the demo site.

Until Astro fixes this issue, a workaround is to comment out or delete the base configuration option in astro.config.mjs

I know this is not ideal if you do need to set base. I will issue a new release once this problem is fixed in Astro.

snoopy21 commented 1 year ago

Hi, thanks for you response

I tried it out and it seems Astro fixed this issue.