diff options
author | Christoph Cullmann <cullmann@kde.org> | 2021-01-24 22:13:40 +0100 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2021-01-24 22:13:40 +0100 |
commit | 7b1bd41a54a686877a0289c09609be3af1944ff4 (patch) | |
tree | 91174fe931facf0868dcf00a3ab5463463e2ae26 /themes | |
parent | 3236c1d56e99dec8c80211bd5e6d2467fde6d96e (diff) |
list only posts
Diffstat (limited to 'themes')
-rw-r--r-- | themes/beautifulhugo/layouts/index.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/themes/beautifulhugo/layouts/index.html b/themes/beautifulhugo/layouts/index.html index f3de0fa..eab1ad2 100644 --- a/themes/beautifulhugo/layouts/index.html +++ b/themes/beautifulhugo/layouts/index.html @@ -9,7 +9,8 @@ {{ end }} <div class="posts-list"> - {{ range .Paginator.Pages }} + {{ $pag := .Paginate (where .Site.RegularPages "Type" "post") }} + {{ range $pag.Pages }} <article class="post-preview"> <a href="{{ .Permalink }}"> <h2 class="post-title">{{ .Title }}</h2> |