greenelab/lab-website-template

Integrate with Lightbox for photo galleries

shainova opened this issue · 3 comments

Checks

Link to your website repo

https://github.com/Ecological-Complexity-Lab/lab_website

Version of Lab Website Template you are using

1.1.6

Description

Thanks for this amazing template!! I would like to integrate a photo gallery. https://lokeshdhakar.com/projects/lightbox2/ looks promising. However, every time I edit a md it removes all the html. I can directly edit the gh-pages branch but this gets over written and does not seem right to do. Is there a way to integrate lighbox?

However, every time I edit a md it removes all the html.

I don't know what you mean by this. Any HTML you include in a markdown file will stay there. All markdown parsers (as far as I'm aware) convert any plain markdown content to HTML, and leave any blocks that are already HTML as HTML.

I see on your site, the HTML you've put on the gallery page is indeed there:

https://ecomplab.com/gallery/

Screenshot 2023-12-18 at 2 24 29 PM

If you're talking about why your images are not appearing, that's because the way you've written the link to an image makes the browser look for the image relative to the current path, at https://ecomplab.com/gallery/images/image2.jpg. What you wanted is https://ecomplab.com/images/image2.jpg.

See this section of the docs.

Closing this as looking at your gallery page at the moment it seems that you've fixed this.

Yes, just did this yesterday. Thank you!