hugo-easy-gallery
hugo-easy-gallery copied to clipboard
Some problems with gallery
I've got bunch of questions to galleries:
- Why a page content which is followed by
{{< /gallery >}}
disappears? How can I change that? - Is it possible to have two distinct galleries separated with text content on the same page?
- Why thumbnails for
{{< gallery >}}
work, but not for single photo (both{{< figure link="..." src="..." >}}
and{{< figure thumb="-thumb" link="...">}}
doesn't work)? - Can I combine
{{< /gallery >}}
with{{< figure src="..." >}}
on the same page, separated with another content?
Concerning your 2. issue:
I also noted that thumbnails haven't been displayed when including them in a {{< gallery >}}
tag.
You need to adjust the path to your image:
Usually you would include a single image with:
{{< figure src="/img/figure_1-thumb.png" link="/img/figure_1.png" >}}
But when you use a gallery, you need to remove the /
in the src
tag:
{{< gallery >}}
{{< figure src="img/figure_1-thumb" link="/img/figure_1.png" >}}
{{< figure src="img/figure_2-thumb" link="/img/figure_2.png" >}}
{{< figure src="img/figure_3-thumb" link="/img/figure_3.png" >}}
{{< /gallery >}}
Hi @tmikolajczyk everything you've mentioned should be possible as demonstrated on https://www.liwen.id.au/heg/
If you're still having issues, can you please post a link to a test page that demonstrates the issue, and post your source code here? Thanks :-)