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

@@ -3,15 +3,17 @@
<script>
import { computed } from 'vue'
import { useAuthStore } from '../../stores/auth'
import SeoMeta from '../../mixins/seo-meta.js'
export default {
components: { },
layout: 'default',
middleware: 'auth',
mixins: [SeoMeta],
setup () {
useOpnSeoMeta({
title: 'Error'
})
const authStore = useAuthStore()
return {
authenticated : computed(() => authStore.check),
@@ -19,7 +21,6 @@ export default {
},
data: () => ({
metaTitle: 'Error',
}),
mounted () {

View File

@@ -18,13 +18,16 @@
<script>
import { computed } from 'vue'
import { useAuthStore } from '../../stores/auth'
import SeoMeta from '../../mixins/seo-meta.js'
export default {
layout: 'default',
middleware: 'auth',
setup () {
useOpnSeoMeta({
title: 'Subscription Success'
})
const authStore = useAuthStore()
return {
authStore,
@@ -34,7 +37,6 @@ export default {
},
data: () => ({
metaTitle: 'Subscription Success',
interval: null
}),