mirror of
https://github.com/alanorth/hugo-theme-bootstrap4-blog.git
synced 2024-11-18 10:17:04 +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 }}
|