How to display recent posts in the homepage?

How do you show the most recent posts on the homepage? It should show the full content of the posts.

Start by looking into lists of content. https://gohugo.io/templates/lists#readout

The full content of a post can be accessed via {{ .Content }} in your template.

Thanks. I got it to show the posts using [ range first 3 ] and [ .content].

How do I restrict the recent pages to posts only? And is there a way to display tags at the bottom of the post? All done on the homepage.

1 Like

Sure. See Requesting Help and show us your work?