From 7b7eb0f1f32c401d5f76337b32af4996cfc67d94 Mon Sep 17 00:00:00 2001 From: Xin Date: Mon, 21 Oct 2024 22:22:56 +0100 Subject: [PATCH] fix: add back empty content filter in search-data.json (#482) --- assets/json/search-data.json | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/json/search-data.json b/assets/json/search-data.json index 0d9d3d0..23e94ac 100644 --- a/assets/json/search-data.json +++ b/assets/json/search-data.json @@ -7,6 +7,7 @@ {{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}} {{- $pages = where $pages "Params.excludeSearch" "!=" true -}} +{{- $pages = where $pages "Content" "!=" "" -}} {{- $output := dict -}}