1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-12-25 11:44:29 +01:00
hugo-theme-bootstrap4-blog/layouts/_default/list.html
Alan Orth 42c06c260c
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.
2016-09-14 16:35:04 +03:00

10 lines
220 B
HTML

{{ define "main" }}
{{ $num_recent_posts := .Site.Params.num_recent_posts | default "5" }}
{{ range first $num_recent_posts (where .Data.Pages "Section" "post") }}
{{ .Render "summary"}}
{{ end }}
{{ end }}