diff options
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index 1ac5c02..a936a8d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,8 @@ {{define "main"}} - {{if .Site.Params.displayRecent }} + {{if ne .Site.Params.displayRecent false}} <div class="section"> <div class="section-title">recent</div> - {{range first .Site.Params.recentMax (where .Site.RegularPages "Section" "ne" "posts")}} + {{range first (default 4 .Site.Params.recentMax) (where .Site.RegularPages "Section" "ne" "posts")}} <div class="list-item"> <a class="entry-title" href="{{ .URL }}">{{ .Title }}</a> {{$page := .}} |