From 52777345e4db7693d665699346b86ffb25ae8077 Mon Sep 17 00:00:00 2001 From: halulu Date: Thu, 8 Mar 2018 22:05:58 +0800 Subject: feat: add hiddenFromHomePage param (#37) --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts') diff --git a/layouts/index.html b/layouts/index.html index 616afdb..26d6869 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "content" }}
{{/* (index .Site.Paginate) */}} - {{ $paginator := .Paginate (where .Data.Pages "Type" "post") }} + {{ $paginator := .Paginate (where (where .Data.Pages "Type" "post") ".Params.hiddenfromhomepage" "!=" true) }} {{ range $paginator.Pages }} {{ .Render "summary" }} {{ end }} -- cgit v1.2.3