Skip to content

Commit

Permalink
Setup change for generating page title (#2949)
Browse files Browse the repository at this point in the history
With the original method, it was not possible to set the page title from definePageMeta as the default title.
  • Loading branch information
AndreasMueck authored Jun 19, 2024
1 parent d022890 commit 745d4a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/content/docs/2.guide/6.seo.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ const head = useLocaleHead({
identifierAttribute: 'id',
addSeoAttributes: true
})
const title = computed(() => t('layouts.title', { title: t(route.meta.title ?? 'TBD') }))
const title = computed(() => t(route.meta.title ?? 'TBD', t('layouts.title'))
);
</script>
<template>
Expand Down

0 comments on commit 745d4a8

Please sign in to comment.