Hi All, Sorry another question!
The website I’m building will have a reviews section, an image and MD file will provide each review, I’m planning 2-3 per page but they will change between each page.
In my head I want the structure to be like this:
/content/
- /page/
–/reviews/
—/review1.md
—/review1.jpg
—/review2.md
—/review2.img - /page2/
–/reviews/
—/review1.md
—/review1.jpg
—/review2.md
—/review2.img - /page/
–/reviews/
—/review1.md
—/review1.jpg
—/review2.md
—/review2.img
I have looked into date but as I want these to be unique to the content folder I think this is the correct way to go.
I’m aware I can use the below code to do this but I already use it for another purpose
{{ with .Resources.ByType “page” }}
{{ range . }}
{{.Content}}
{{ end }}
{{ end }}
Is there a way for me to modify this code to only pull files from a specific folder (/reviews) or do I need to change how I am doing this? Currently with my layout the review I have set up gets pulled into a different content block where I am using the code above.
Thanks for any help - hope it makes sense