List Section on Homepage


i have a section named references - and i want it to display all the section entries on my homepage inside a partial template.

i tried this:

{{ range where .Data.Pages "Section" "referenz" }}
{{ .Render "list" }}
{{ end }}   

in the section folder the following code runs just as i want it - but i want it to work on the homepage - but how?

{{ range .Data.Pages }}
{{ .Render "list"}}
{{ end }}

Thx :wink:

oh boy - i think it got too late today -

the problem was a simple typo.

So the first codeblock of the above post ist working properly :slight_smile:

sometimes problems solve themselves :smiley:

maybe this can help someone out :slight_smile:

1 Like