Skip to content
Snippets Groups Projects
Commit 36cdcecb authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

Limit posts on start page to 3

parent d5e5ec13
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
<div class="posts-list">
{{ $pag := .Paginate (where .Data.Pages "Type" "post") }}
{{ range $pag.Pages }}
{{ range first 3 $pag.Pages }}
<article class="post-preview">
<a href="{{ .Permalink }}">
<h2 class="post-title">{{ .Title }}</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment