Closed Armanasq closed 1 year ago
Any ideas?
Please don't spam support questions in multiple places. Also, this is not the place for support questions - it's for project management.
I asked multiple times in the past weeks but no one answered. Also, it seems that its an issue related to github.com/wowchemy/wowchemy-hugo-themes/modules/ which does not allow to change the code and override any custom codes
Preliminary Checks
Description
I am using wowchemy-hugo-themes starter-hugo-academic. I added a custom JS and CS code to add Gallery mode to the website. It works fine when I run the code locally. However, the gallery mode functionality disappear when I upload the site to GitHub. I have checked the uploaded code via chrome inspect to make sure that the style and script are correctly loaded in the website
I use the code below
Step 1: Create a new partial First, create a new partial file for the modal window. In your Hugo project, navigate to the
layouts/partials
directory and create a new file namedgallery-modal.html
. Add the following code to the file:Step 2: Modify the gallery shortcode Next, you need to modify the
gallery.html
shortcode file in thelayouts/shortcodes
directory. Open the file and locate the{{ $relref := .Page.RelPermalink }}
line. Below that line, add the following code:Step 3: Add CSS styles Finally, add the necessary CSS styles to your theme. Open the
assets/scss/custom.scss
file and add the following code:when I click on an image in the gallery, the modal window open with the clicked image displayed.
Reproduction Link
https://github.com/Armanasq/Armanasq.github.io
Steps to Reproduce
1. 2. 3. ...
Expected Result
Show the Gallery mode for the images
Actual Result
Load the image in a new paged
What Hugo Module versions does your site use?
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify
versionv1.0.0
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-netlify-cms
versionv1.0.0
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-plugin-reveal
versionv1.0.0
github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5
versionv5.7.1-0.20230420205746-951c7b6f709d
What operating system(s) are you seeing the problem on?
Linux
What browser(s) are you seeing the problem on?
Chrome
Which Wowchemy template are you using?
starter-hugo-academic
What version of Hugo are you using?
hugo v0.114.1-e9b716ad9869b79e7c374bbdae4daf5ee6406bd4+extended linux/amd64 BuildDate=2023-06-23T11:02:58Z VendorInfo=snap:0.114.1