From b90f4f324a205994a930199e5bf49ab797b0da6b Mon Sep 17 00:00:00 2001 From: Konnor Rogers Date: Tue, 19 Sep 2023 10:32:47 -0400 Subject: [PATCH] feature: add all frontmatter data to search index --- content/bridgetown_quick_search/index.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/bridgetown_quick_search/index.json b/content/bridgetown_quick_search/index.json index 8757779..547d6a2 100644 --- a/content/bridgetown_quick_search/index.json +++ b/content/bridgetown_quick_search/index.json @@ -23,7 +23,8 @@ template_engine: liquid "categories": {{ document.categories | join: ", " | jsonify }}, "tags": {{ document.tags | join: ", " | jsonify }}, "url": {{ url | jsonify }}, - "content": {{ document.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }} + "content": {{ document.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}, + "data": {{ document.data | jsonify }} } {%- assign looped = true %} {%- endunless %} @@ -40,7 +41,8 @@ template_engine: liquid "categories": {{ document.categories | join: ", " | jsonify }}, "tags": {{ document.tags | join: ", " | jsonify }}, "url": {{ document.url | jsonify }}, - "content": {{ document.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }} + "content": {{ document.content | strip_html | replace_regex: "[\s/\n]+"," " | strip | jsonify }}, + "data": {{ document.data | jsonify }} } {%- endunless %} {%- endif %}