diff options
author | halulu <lzjluzijie@gmail.com> | 2018-03-08 22:05:58 +0800 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-03-08 22:05:58 +0800 |
commit | 52777345e4db7693d665699346b86ffb25ae8077 (patch) | |
tree | 4c45fd4908a28abcbed8d062b964d9174ffbbb90 /layouts | |
parent | 8274b4209d8b2ecb12a7cafc8d9513371c72a5dc (diff) |
feat: add hiddenFromHomePage param (#37)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/index.html | 2 |
1 files changed, 1 insertions, 1 deletions
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" }} <section id="posts" class="posts"> {{/* (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 }} |