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

@ -8,7 +8,7 @@ const paginator = useMasto().v1.trends.listStatuses()
const hideNewsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_POSTS_TIPS, false)
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.posts')} | ${t('nav.explore')}` : '',
title: () => `${t('tab.posts')} | ${t('nav.explore')}`,
})
</script>

View file

@ -8,7 +8,7 @@ const paginator = useMasto().v1.trends.listLinks()
const hideNewsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_NEWS_TIPS, false)
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.news')} | ${t('nav.explore')}` : '',
title: () => `${t('tab.news')} | ${t('nav.explore')}`,
})
</script>

View file

@ -11,7 +11,7 @@ const paginator = masto.v1.trends.listTags({
const hideTagsTips = useLocalStorage(STORAGE_KEY_HIDE_EXPLORE_TAGS_TIPS, false)
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.hashtags')} | ${t('nav.explore')}` : '',
title: () => `${t('tab.hashtags')} | ${t('nav.explore')}`,
})
</script>

View file

@ -5,7 +5,7 @@ const { t } = useI18n()
const paginator = useMasto().v2.suggestions.list({ limit: 20 })
useHeadFixed({
title: () => isHydrated.value ? `${t('tab.for_you')} | ${t('nav.explore')}` : '',
title: () => `${t('tab.for_you')} | ${t('nav.explore')}`,
})
</script>

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>