From b298524d366e8270a92260558a1e3083823b82d4 Mon Sep 17 00:00:00 2001 From: Kasper Larsen Date: Tue, 10 Sep 2024 15:47:01 +0200 Subject: [PATCH] fixed #3960 tags on Cards --- search-parts/src/layouts/results/cards/CardsLayout.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search-parts/src/layouts/results/cards/CardsLayout.ts b/search-parts/src/layouts/results/cards/CardsLayout.ts index 32d15663..d7c23565 100644 --- a/search-parts/src/layouts/results/cards/CardsLayout.ts +++ b/search-parts/src/layouts/results/cards/CardsLayout.ts @@ -61,7 +61,7 @@ export class CardsLayout extends BaseLayout { [ { name: strings.Layouts.Cards.Fields.Title, field: 'title', value: '{{slot item @root.slots.Title}}', useHandlebarsExpr: true, supportHtml: false }, { name: strings.Layouts.Cards.Fields.Location, field: 'location', value: `{{SiteTitle}}`, useHandlebarsExpr: true, supportHtml: true }, - { name: strings.Layouts.Cards.Fields.Tags, field: 'tags', value: `\n\n{{#if (slot item @root.slots.Tags)}}\n\t
\n\t\t\n\t\t
\n\t\t\t{{#each (split (slot item @root.slots.Tags) ";") as |tag| }}\n\t\t\t\t\n\t\t\t\t\t{{#with (split (tag) '|')}}\n\t\t\t\t\t\t{{trim [2]}}\n\t\t\t\t\t{{/with}}\n\t\t\t\n\t\t\t{{/each}}\n\t\t
\n\t
\n{{/if}}`, useHandlebarsExpr: true, supportHtml: true }, + { name: strings.Layouts.Cards.Fields.Tags, field: 'tags', value: `\n\n{{#if (slot item @root.slots.Tags)}}\n\t
\n\t\t\n\t\t
\n\t\t\t{{#each (split (slot item @root.slots.Tags) ";") as |tag| }}\n\t\t\t\t\n\t\t\t\t\t{{#with (split (tag) '|')}}\n\t\t\t\t\t\t{{trim [2]}}\n\t\t\t\t\t{{/with}}\n\t\t\t\n\t\t\t{{/each}}\n\t\t
\n\t
\n{{/if}}`, useHandlebarsExpr: true, supportHtml: true }, { name: strings.Layouts.Cards.Fields.PreviewImage, field: 'previewImage', value: "{{slot item @root.slots.PreviewImageUrl}}", useHandlebarsExpr: true, supportHtml: false }, { name: strings.Layouts.Cards.Fields.PreviewUrl, field: 'previewUrl' , value: "{{slot item @root.slots.PreviewUrl}}", useHandlebarsExpr: true, supportHtml: false }, { name: strings.Layouts.Cards.Fields.Date, field: 'date', value: "{{getDate (slot item @root.slots.Date) 'LL'}}", useHandlebarsExpr: true, supportHtml: false },