FIX: Use topic title headline in search menu result.

This commit is contained in:
Guo Xiang Tan 2020-10-01 16:34:00 +08:00 committed by Alan Guo Xiang Tan
parent f4c4a2a7f1
commit 4b8c15b857

View File

@ -151,7 +151,9 @@ createSearchResult({
h(
"span.topic-title",
{ attributes: { "data-topic-id": topic.id } },
new Highlighted(topic.fancyTitle, term)
this.siteSettings.use_pg_headlines_for_excerpt
? new RawHtml({ html: `<span>${result.topic_title_headline}</span>` })
: new Highlighted(topic.fancyTitle, term)
),
];