mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2025-05-08 05:26:00 +02:00
layouts: Only list posts on front page and sidebar
We don't want to list other top-level pages like "About" here, they will be enumerated in the header.
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
|
||||
{{ $num_recent_posts := .Site.Params.num_recent_posts | default "5" }}
|
||||
|
||||
{{ range first $num_recent_posts .Data.Pages }}
|
||||
{{ range first $num_recent_posts (where .Data.Pages "Section" "post") }}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
|
||||
|
Reference in New Issue
Block a user