From 88f6bbbe743004eb1bbff9adbe95f8d70f543531 Mon Sep 17 00:00:00 2001 From: arttu Date: Thu, 23 May 2019 13:54:21 +0300 Subject: [PATCH] fix tip text in search --- .../custom/partials/search-results-list.dust | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/content/themes/custom/partials/search-results-list.dust b/content/themes/custom/partials/search-results-list.dust index 28402ef..d97ca10 100644 --- a/content/themes/custom/partials/search-results-list.dust +++ b/content/themes/custom/partials/search-results-list.dust @@ -28,13 +28,17 @@ | {! Get translation from both groups as only 1 will match !} - {?term} - {@eq key=fields.api_type value="taskgroup"} - {@apitranslation path="aktiviteettipaketin_ylakasite.{term.single}_single" /} - {:else} - {@apitranslation path="aktiviteetin_ylakasite.{term.single}_single" /} - {/eq} - {/term} + {@eq key=post_type value="pof_tip"} + {@apitranslation path="api_type.pof_tip" /} + {:else} + {?term} + {@eq key=fields.api_type value="taskgroup"} + {@apitranslation path="aktiviteettipaketin_ylakasite.{term.single}_single" /} + {:else} + {@apitranslation path="aktiviteetin_ylakasite.{term.single}_single" /} + {/eq} + {/term} + {/eq} {?post_excerpt}