Hi all !
I have the following structure :
/content/blog/articles
I want to show a list of all articles posts on the /blog page.
How can I do it, please ?
Thanks !
Hi all !
I have the following structure :
/content/blog/articles
I want to show a list of all articles posts on the /blog page.
How can I do it, please ?
Thanks !
In layouts/section/blog.html
<ul class="blog-posts">
{{ range .Data.Pages }}
<li>Whatever you want in each item...</li>
{{end}}
</ul>
Also. .Pages is short for .Data.Pages
On the topic, I made some improvements to the lists page on the new docs concept. Go here for more information @dz213:
It works like a charm !
Thank you