How to list the content of a directorary files in a template

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