Good morning, everyone, I’m working at creating a gallery on my page as per this topic So far I’m not having any luck. Apparently, the image resources cannot be found by the shortcode, and I’ve tried everything I can think of. `
{{ $galleryimages := .Page.Resources.Match (printf “%s-*” (.Get “folder”)) }}
{{ .Get "title" }}
{{ range $galleryimages }}
{{ $thumbnail := .Resize "320x" }}
</div>
<div class="text">
<h2>About Us</h2>
<p>Twistmark Media provides social media management, digital marketing, video production, strategic marketing, and creation of custom TV channels to improve client education and grow your business.</p>
</div>
</div>
I figured it out. The problem here is that my code doesn’t work when you use it in a section. If you rename _index.html just to index.html, the gallery shows up.
Maybe someone can suggest a way to work around this limitation.
yes of course, but, at least for me, it would be nice to fix my code so it works with sections as well. Maybe this is a limitation with Hugo ? I don’t know.