How to create a list of all posts using Hugo

Hugo uses the list template for every page named

Therefore, everything you have to do in order to get a page at URL /blog listing all posts (no matter which category they belong to), is to create content/posts/ with the following content:

title: "My blog"
url: /blog

Using url is optional here and only needed if you want to use a custom permalink for this page instead of posts/index.html.