From 67a626742a5891864de6c477ff05f6177d62d0b7 Mon Sep 17 00:00:00 2001 From: cstns Date: Tue, 13 May 2025 18:31:27 +0300 Subject: [PATCH] Return more content for algolia search results --- src/_includes/layouts/common-js.njk | 1 + 1 file changed, 1 insertion(+) diff --git a/src/_includes/layouts/common-js.njk b/src/_includes/layouts/common-js.njk index a7ec709142..5ceb5323f7 100644 --- a/src/_includes/layouts/common-js.njk +++ b/src/_includes/layouts/common-js.njk @@ -51,6 +51,7 @@ params : { query, hitsPerPage: 5, + attributesToSnippet: ['content:50'] }, attributesToHighlight: '*', filters: scope.length === 0 ? undefined : `category:${scope}`