hugo-easy-gallery icon indicating copy to clipboard operation
hugo-easy-gallery copied to clipboard

Some problems with gallery

Open tmikolajczyk opened this issue 6 years ago • 2 comments

I've got bunch of questions to galleries:

  1. Why a page content which is followed by {{< /gallery >}} disappears? How can I change that?
  2. Is it possible to have two distinct galleries separated with text content on the same page?
  3. Why thumbnails for {{< gallery >}} work, but not for single photo (both {{< figure link="..." src="..." >}} and {{< figure thumb="-thumb" link="...">}} doesn't work)?
  4. Can I combine {{< /gallery >}} with {{< figure src="..." >}} on the same page, separated with another content?

tmikolajczyk avatar Apr 07 '18 22:04 tmikolajczyk

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 >}}

bjoernbos avatar Jun 16 '18 19:06 bjoernbos

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 :-)

liwenyip avatar Sep 27 '18 05:09 liwenyip