mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-25 11:44:29 +01:00
Alan Orth
42c06c260c
We don't want to list other top-level pages like "About" here, they will be enumerated in the header.
10 lines
220 B
HTML
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 }}
|