SEO meta nuxt migration (#274)

* SEO meta nuxt migration

* Polish seo metas, add defaults for OG and twitter

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
formsdev
2024-01-04 23:08:50 +05:30
committed by GitHub
parent 9594157a2d
commit f87e3f1685
36 changed files with 261 additions and 172 deletions

View File

@@ -48,7 +48,10 @@ const workspace = computed(() => workspacesStore.getCurrent)
const workspacesLoading = computed(() => workspacesStore.loading)
const form = storeToRefs(workingFormStore).content
// metaTitle: 'Create a new Form as Guest',
useOpnSeoMeta({
title: 'Create a new Form for free',
})
// Data
const stateReady = ref(false)
const loading = ref(false)

View File

@@ -33,7 +33,9 @@ definePageMeta({
middleware: "auth"
})
const metaTitle = 'Create a new Form'
useOpnSeoMeta({
title: 'Create a new Form'
})
onBeforeRouteLeave((to, from, next) => {
if (isDirty()) {