From 806db421120de15a5f98c093b785a6ceca3cf89c Mon Sep 17 00:00:00 2001 From: Robin Kaggl Date: Mon, 18 Mar 2024 16:01:26 +0100 Subject: [PATCH] added page titles, resolves #84 --- pages/detail/courts/[id].vue | 12 +++++++++++- pages/detail/events/[id].vue | 12 ++++++++++++ pages/detail/institutions/[id].vue | 11 ++++++++++- pages/detail/persons/[id].vue | 11 ++++++++++- pages/detail/places/[id].vue | 10 ++++++++++ pages/documentation/[...slug].vue | 4 ++++ pages/hierarchy.vue | 3 +++ pages/search.vue | 4 ++++ pages/search/courts.vue | 6 ++++++ pages/search/events.vue | 6 ++++++ pages/search/institutions.vue | 10 ++++++++++ pages/search/persons.vue | 6 ++++++ pages/search/places.vue | 6 ++++++ pages/search/references.vue | 6 ++++++ pages/search/relations.vue | 6 ++++++ 15 files changed, 110 insertions(+), 3 deletions(-) diff --git a/pages/detail/courts/[id].vue b/pages/detail/courts/[id].vue index 2d582aa..4f95c00 100644 --- a/pages/detail/courts/[id].vue +++ b/pages/detail/courts/[id].vue @@ -39,6 +39,16 @@ const relCols = ["relation_type", "target.name", "start_date", "end_date"]; definePageMeta({ title: "pages.searchviews.courts.title", }); + +const title = computed(() => { + if (data.value.entity.data?.name) + return `${data.value.entity.data.name} - ${t("pages.searchviews.courts.sing")}`; + return t("pages.searchviews.courts.sing"); +}); + +useHead({ + title, +});