From 92a840c0961503eab1c966b1d0343fe778a395be Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Fri, 27 Aug 2021 01:31:59 -0700 Subject: [PATCH] doc: add fields content to algolia search --- themes/butterfly/_config.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/themes/butterfly/_config.yml b/themes/butterfly/_config.yml index 3b70a4b..25e2e59 100644 --- a/themes/butterfly/_config.yml +++ b/themes/butterfly/_config.yml @@ -58,6 +58,15 @@ algolia_search: enable: true hits: per_page: 6 + fields: + - content:strip:truncate,0,500 + - excerpt:strip + - page + - permalink + - post + - slug + - tags + - title # Local search local_search: