Improve the filtering of the pages display on the home page
This commit is contained in:
parent
7224339674
commit
332e017df7
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
|||
<div class="content row">
|
||||
<div class="col-sm-8">
|
||||
<main role="main">
|
||||
{{ $recettePages := where .Site.Pages ".Kind" "==" "page" }}
|
||||
{{ $recettePages := where .Site.Pages ".Section" "==" "recettes" }}
|
||||
{{ $recettePages := where $recettePages ".Kind" "==" "page" }}
|
||||
{{ $recetteSorted := sort $recettePages ".Date" "desc" }}
|
||||
{{ $paginator := .Paginate $recetteSorted 20 }}
|
||||
{{ range $paginator.Pages }}
|
||||
|
|
Loading…
Add table
Reference in a new issue