okkur / syna

Highly customizable open source theme for Hugo based static websites
https://syna.okkur.org/demo/
Apache License 2.0
251 stars 133 forks source link

Portfolio documentation missing modal setup #878

Open tommyalatalo opened 1 year ago

tommyalatalo commented 1 year ago

What happened?

I'm trying to set up a portfolio fragment similar to the live demo, but when clicking on an image the modal doesn't open up. There doesn't seem to be any examples for how to make the modal appear, the example fragment just states that An additional description can be provided and shown as a modal upon clicking the portfolio., but how do you do that? The content found in exampleSite of the repo doesn't have working modals either, so I can't seem to find the information on how to set this up anywhere.

I also checked that the .has-modal class is applied to the image elements, which it is, but it's still not opening like mentioned above.

What did you expect to happen?

The modal to open up when clicking a portfolio image.

How can we reproduce this issue?

Run the exampleSite.

Is there anything else we need to know about?

No response

Syna theme version

0.17.3

Hugo version

v0.102.3+extended

Versions of other dependencies

No response

stp-ip commented 1 year ago

Try disabling minification:

[minify]
disableJS = true

I assume this might be due to a JS issue. Haven't had time at all to look into the issue unfortunately.

tommyalatalo commented 1 year ago

Yeah that seems to have solved it, thanks