DEV: No need to highlight search if PG headline generation is used.

This commit is contained in:
Guo Xiang Tan 2020-08-07 10:49:37 +08:00
parent 12a00d6dc5
commit 1d2ba8fd52
No known key found for this signature in database
GPG Key ID: FBD110179AAC1F20
2 changed files with 12 additions and 4 deletions

View File

@ -54,9 +54,13 @@
</span>
{{#if result.blurb}}
{{#highlight-search highlight=term}}
{{#if siteSettings.use_pg_headlines_for_excerpt}}
{{html-safe result.blurb}}
{{/highlight-search}}
{{else}}
{{#highlight-search highlight=highlightQuery}}
{{html-safe result.blurb}}
{{/highlight-search}}
{{/if}}
{{/if}}
</div>
</div>

View File

@ -112,9 +112,13 @@
</span>
{{#if result.blurb}}
{{#highlight-search highlight=highlightQuery}}
{{#if siteSettings.use_pg_headlines_for_excerpt}}
{{html-safe result.blurb}}
{{/highlight-search}}
{{else}}
{{#highlight-search highlight=highlightQuery}}
{{html-safe result.blurb}}
{{/highlight-search}}
{{/if}}
{{/if}}
</div>