From 17b553fe62e19d4ef79aca070674f90347f6e2b2 Mon Sep 17 00:00:00 2001 From: Qicz Date: Mon, 23 May 2022 18:00:36 +0800 Subject: optimize the carousel title & href with saftHTML (#362) * optimize the carousel title & href with saftHTML * support more sections list * quotes. Co-authored-by: Guillermo Guerrero Ibarra --- layouts/_default/list.html | 2 +- layouts/partials/carousel.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 41bde81..c852448 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -23,7 +23,7 @@
- {{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }} + {{ $paginator := .Paginate (where .Data.Pages "Type" "in" .Site.Params.mainSections) }} {{ range $paginator.Pages }}
diff --git a/layouts/partials/carousel.html b/layouts/partials/carousel.html index a329dc2..5d0e42b 100644 --- a/layouts/partials/carousel.html +++ b/layouts/partials/carousel.html @@ -11,11 +11,11 @@ {{ range sort .Site.Data.carousel "weight" }}