diff options
author | imzeuk <imzeuk@gmail.com> | 2019-04-27 16:03:01 +0300 |
---|---|---|
committer | imzeuk <imzeuk@gmail.com> | 2019-04-27 16:03:01 +0300 |
commit | c5322377015daffecada20e2e59a33f9c9cf57bb (patch) | |
tree | d0c95c00664b5acaff6e0ea5df10196a287cec3a | |
parent | cecd171fac7e5f1a9da1969f0ab34a0518db18a9 (diff) |
update theme
-rw-r--r-- | README-zh.md | 2 | ||||
-rw-r--r-- | 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 }} <div class="post animated fadeInDown"> <div class="post_title"> |