From 03527b2fe091ab6bd6b863c82a58c1c8d05d613c Mon Sep 17 00:00:00 2001 From: Pascal Syma Date: Fri, 1 Aug 2025 01:31:11 +0200 Subject: [PATCH] Add dynamic title --- app/components/QuestTags.vue | 7 ++++--- app/pages/hunt/[huntSlug]/[questSlug]/index.vue | 8 ++++++++ app/pages/hunt/[huntSlug]/index.vue | 7 +++++++ 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/app/components/QuestTags.vue b/app/components/QuestTags.vue index cc9a264..0d4ec72 100644 --- a/app/components/QuestTags.vue +++ b/app/components/QuestTags.vue @@ -18,9 +18,10 @@ const props = defineProps<{ {{ quest.pictureRequired ? '📸' : '📷' }} {{ quest.textRequired ? '❓' : '❔' }} {{ quest.title }} - {{ - quest.answer?.score || 0 - }} + {{ quest.answer?.score || 0 }} / {{ quest.points + }}{{ quest.extraPoints ? `+${quest.extraPoints}` : '' }} {{ quest.points }}{{ quest.extraPoints ? ` +${quest.extraPoints}` : '' }} const app = useNuxtApp(); const { huntSlug, questSlug } = app.$slugData; +const { t } = useI18n(); + +useHead({ + title: t('layouts.title', { + title: + [questSlug?.name, huntSlug?.name].join(' | ') || t('layouts.default_tile') + }) +});