{#if block.title}
{block.title}
{/if}
{#if descriptionHtml}
{@html descriptionHtml}
{/if}
{#if visibleFragments.length === 0}
{t(T.searchable_text_no_results)}
{:else}
{visibleFragments.length === fragments.length
? t(T.searchable_text_count_all, { count: visibleFragments.length })
: t(T.searchable_text_count_filtered, {
visible: visibleFragments.length,
total: fragments.length,
})}
{/if}
{#each visibleFragments as fragment, i}
{@html highlightInText(
fragment.title || t(T.searchable_text_untitled),
searchQuery.trim(),
)}
{#if fragment.tags.length > 0}
{/if}
{@html highlightInHtml(fragment.textHtml, searchQuery.trim())}
{/each}