1
0
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:
2016-09-14 16:35:04 +03:00
parent 5b0405e69c
commit 42c06c260c
2 changed files with 2 additions and 2 deletions

View File

@ -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 }}