From c5322377015daffecada20e2e59a33f9c9cf57bb Mon Sep 17 00:00:00 2001 From: imzeuk Date: Sat, 27 Apr 2019 21:03:01 +0800 Subject: update theme --- README-zh.md | 2 -- layouts/partials/post.html | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/README-zh.md b/README-zh.md index ed05046..7230dd0 100644 --- a/README-zh.md +++ b/README-zh.md @@ -42,8 +42,6 @@ $ git clone https://github.com/imzeuk/hugo-theme-zozo themes/zozo 然后你可以在其他任何地方通过链接来引用该页面,如在菜单中放置一个链接。 -关于页面就是这么实现的。 - ## Shortcodes 主题提供了 `img` shortcode. diff --git a/layouts/partials/post.html b/layouts/partials/post.html index c19f4f7..5fb0703 100644 --- a/layouts/partials/post.html +++ b/layouts/partials/post.html @@ -1,5 +1,5 @@ -{{ $pages := where .Pages "Type" "not in" (slice "about") }} -{{ $paginator := .Paginate (where $pages "Params.hidden" "ne" true) }} +{{ $pages := where .Pages "Params.hidden" "ne" true }} +{{ $paginator := .Paginate (where $pages "Type" "posts") }} {{ range $paginator.Pages }}
-- cgit v1.2.3