How to display recent posts in the homepage?

#1

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

#2

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.

#3

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.

#4

Sure. See Requesting Help and show us your work?