feat: support page titles in opengraph data

This commit is contained in:
Daniel Roe 2023-01-11 23:08:31 +00:00
parent da8594dbf1
commit a12d3d09b1
7 changed files with 20 additions and 6 deletions

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.notifications_all')} | ${t('nav.notifications')}` : '',
title: () => `${t('tab.notifications_all')} | ${t('nav.notifications')}`,
})
</script>

View file

@ -1,7 +1,7 @@
<script setup lang="ts">
const { t } = useI18n()
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.notifications_mention')} | ${t('nav.notifications')}` : '',
title: () => `${t('tab.notifications_mention')} | ${t('nav.notifications')}`,
})
</script>