chore: add basic open graph metadata

This commit is contained in:
Daniel Roe 2023-01-11 22:42:52 +00:00
parent 07808384bf
commit 3f9e39d244
2 changed files with 17 additions and 0 deletions

View file

@ -2,6 +2,15 @@
setupPageHeader()
provideGlobalCommands()
const route = useRoute()
if (process.server && !route.path.startsWith('/settings')) {
useHead({
meta: [
{ property: 'og:url', content: `https://elk.zone${route.path}` },
],
})
}
// We want to trigger rerendering the page when account changes
const key = computed(() => `${currentUser.value?.server ?? currentServer.value}:${currentUser.value?.account.id || ''}`)
</script>