From b03ae3222ebcb38f95d4fc4433e6b5367c5266c1 Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Thu, 26 May 2022 16:22:49 +0800 Subject: [PATCH] :construction: Feat(fixit-decryptor): auto hide encrypted content from search (#123) --- layouts/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.json b/layouts/index.json index 4e810391..322330fa 100644 --- a/layouts/index.json +++ b/layouts/index.json @@ -1,6 +1,6 @@ {{- if .Site.Params.search -}} {{- $index := slice -}} - {{- $pages := .Site.RegularPages -}} + {{- $pages := where .Site.RegularPages "Params.password" "eq" nil -}} {{- if .Site.Params.page.hiddenFromSearch -}} {{- $pages = where $pages "Params.hiddenfromsearch" false -}} {{- else -}}