I’ve also cloned it into the themes folder. According to the installation instructions, this should be enough to get me started. However when I add a new folder called images next to the _index.md inside content and us this shortcode, nothing shows up:
---
hero:
heading: A Whole Sort of General Mishmash
maxWidthPX: 400
seo:
image: /images/hero-2.jpg
---
{{< gallery match="images/*" sortOrder="desc" rowHeight="150" margins="5" resizeOptions="600x300 q90 Lanczos" showExif="true" previewType="blur" embedPreview="true" >}}
I’ve uploaded all the files to this repo here if that helps: Website Repo. Can someone help me with this? I’ve been trying for a while now. I’m new to Hugo so I might be missing something that is very simple.
Yes, you should be using the shortcode inside a content file.
If you mean that you are using your shortcode inside content/_index.md: your theme’s layouts/index.html does not render {{ .Content }}, so it never parses the shortcode.
The shortcode looks fairly complex. You may want to ask the maintainer for help on how to use their component.
If you mean that you are using your shortcode inside content/_index.md : your theme’s layouts/index.html does not render {{ .Content }} , so it never parses the shortcode.