mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-12-25 19:54:31 +01:00
Alan Orth
f7b4f0a819
You can set this property in your site's config to override: [params] num_recent_posts = 7 Defaults to five (5) if unset.
10 lines
195 B
HTML
10 lines
195 B
HTML
{{ define "main" }}
|
|
|
|
{{ $num_recent_posts := .Site.Params.num_recent_posts | default "5" }}
|
|
|
|
{{ range first $num_recent_posts .Data.Pages }}
|
|
{{ .Render "summary"}}
|
|
{{ end }}
|
|
|
|
{{ end }}
|