list only posts

This commit is contained in:
Christoph Cullmann 2021-01-24 22:13:40 +01:00
parent 3236c1d56e
commit 7b1bd41a54

View file

@ -9,7 +9,8 @@
{{ end }} {{ end }}
<div class="posts-list"> <div class="posts-list">
{{ range .Paginator.Pages }} {{ $pag := .Paginate (where .Site.RegularPages "Type" "post") }}
{{ range $pag.Pages }}
<article class="post-preview"> <article class="post-preview">
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2> <h2 class="post-title">{{ .Title }}</h2>