You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The gallery shortcode does not work properly (does not open an image in slideshow) when used in a page bundle that belongs to a page with headless: false
However, it works inside home, which is headless.
How to reproduce
Clone starter-academic and change to the newly created directory
Update modules
hugo mod clean
hugo mod get -u ./...
hugo mod tidy
Create folder content/page
Copy gallery folder from exampleSite/content/home/gallery to content/page/gallery
Create file content/page/index.md with the following content:
---
type: widget_page
headless: false
---
Start server: hugo server
Open page //localhost:1313/page/
Expected behavior
The gallery shows up, but the images are not opened in a slideshow.
Instead, the clicked image is shown, e.g.: //localhost:1313/page/gallery/gallery/theme-1950s.png
The issue appears to be due to a limitation of Hugo's .HasShortcode not parsing the child pages (widgets). So with the current setup, it's not fully detecting usage of the Gallery shortcode.
gcushen
changed the title
Gallery works improperly in page bundles of non-headless page
Gallery zoom opens image in new tab instead of lightbox when used within a non-Homepage widget
May 29, 2021
Description
The gallery shortcode does not work properly (does not open an image in slideshow) when used in a page bundle that belongs to a page with
headless: false
However, it works inside
home
, which is headless.How to reproduce
content/page
gallery
folder fromexampleSite/content/home/gallery
tocontent/page/gallery
content/page/index.md
with the following content:hugo server
//localhost:1313/page/
Expected behavior
The gallery shows up, but the images are not opened in a slideshow.
Instead, the clicked image is shown, e.g.:
//localhost:1313/page/gallery/gallery/theme-1950s.png
Technical details:
v0.0.0-20210324194200-fda9f39d872e
v0.82.0-9D960784+extended
The text was updated successfully, but these errors were encountered: