Make homepage the posts list page

Im brand new to hugo, so sorry if this is a simple question. I’ve tried finding the answer but no solution is really making sense to me.

I have a Website of structure.

└ content/
  └ posts

on the homepage of my website I would like to display a list of posts only.
I know I can get a list of posts by visiting /posts/
but how do i get that as my homepage? Right now my homepage loops over all pages.

here is an eample of my list.html template…

{{ define "main" }}
    {{- .Content -}}
    {{ range .Pages }}
        {{- partial "summary.html" . -}}
    {{ end }}
{{ end }}```

{{ range .Pages }}


{{range where .Site.RegularPages "Section" "posts" }}

For reference:

1 Like

Thank you so much!

1 Like