diff options
author | matt6697 <32440697+matt6697@users.noreply.github.com> | 2021-09-13 20:04:27 +0300 |
---|---|---|
committer | matt6697 <32440697+matt6697@users.noreply.github.com> | 2021-09-13 20:04:27 +0300 |
commit | 1d22c9ca2c59e6c78d3e24092bf098b25a9062bd (patch) | |
tree | 6d6d685a342a7650f21d2ddef83293959f9e8bec | |
parent | e6e2245377368149eb2924393b12499684d4e21f (diff) |
Avoid duplicates cards between featured and non featured parts of a blog page.
-rw-r--r-- | layouts/_default/list.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 2da07b8..2e03aeb 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -22,7 +22,7 @@ </div> </div> {{ end }} - {{ $paginator := .Paginate .Data.Pages }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "!=" "featured") }} {{ range $paginator.Pages }} <div class="col-lg-4 col-sm-6 mb-5"> <div class="card border-0"> |