This is my case.
I’ve a layout/accountant/single
. I need to list the content from content/accountant/*.md
files in the template. What is the best way to do it?
This is my case.
I’ve a layout/accountant/single
. I need to list the content from content/accountant/*.md
files in the template. What is the best way to do it?
In Hugo 0.15-DEV
there is a template func named readDir
that does this. Not sure if it’s the best way, but it is the only way …
If you’re using a Hugo release version, this means you’ll either have to wait or use the latest source.
@bep, Thanks for the information