Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/themefisher/bigspring-hugo-startup-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatt6697 <32440697+matt6697@users.noreply.github.com>2021-09-13 20:04:27 +0300
committermatt6697 <32440697+matt6697@users.noreply.github.com>2021-09-13 20:04:27 +0300
commit1d22c9ca2c59e6c78d3e24092bf098b25a9062bd (patch)
tree6d6d685a342a7650f21d2ddef83293959f9e8bec
parente6e2245377368149eb2924393b12499684d4e21f (diff)
Avoid duplicates cards between featured and non featured parts of a blog page.
-rw-r--r--layouts/_default/list.html2
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">