Displaying index of folder


I am stuck on a basic feature and would love to get some help. I wish to display in the recherche/index.md, the list of the articles in the recherche file so every time another article is added as an md file, it can be displayed. I am guessing I need a slice to gather all md file from the recherche folder and range over to display it but I’m not sure.
The repo: Creatip/content/recherche at bw-design · Discopigeononline/Creatip · GitHub

Thank you very much!

Rename index.md to _index.md to change the directory from a leaf bundle to a branch bundle, then create a list page layout that iterates through the pages.




{{ range .Pages }}
  <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
{{ end }}

Thank you so much for clarifying this! It works perfectly now.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.