Ignoring a script on compile: Generates a gallery of images with pagnation and a modal #1538
Unanswered
imagelessthought
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Checklist
How did you create the site?
Built from
jekyll-theme-chirpy
Description
Having some trouble getting a script to run. It runs fine outside of Jekyll but it just seems to be getting ignored in the compile.
The script generates a gallery of images with pagnation and a modal that opens up when the image is clicked so you can test the image on different background colors.
Here is breakdown of the script, with the html, css, and javascript components broken out and explained: https://imagelessthought.github.io/mbaggett/modules/gallery/
Here is the script running under Hugo (trying to move to Jekyll instead): https://imagelessthought.github.io/mbaggett/gallery/ai/
Here is my repo: https://github.com/imagelessthought/jekyll-theme-chirpy
The site is live here: https://imagelessthought.github.io/dev/gallery/ai/
I looked at the source and the script is just being ignored from some reason in the compile. No console errors to go by so kind of stuck.
Any help would be appreciated.
Thanks.
Operations you have already tried
I have moved the script to a separate file and run it inline. Tried various layout. Did simplifying tests but just cannot get the script to execute. Even ChatGPT is stumped.
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions