Improve SEO meta for templates pages

This commit is contained in:
Julien Nahum 2023-04-12 12:59:55 +02:00
parent 5773af6f83
commit 92b2548add
2 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,7 @@ import Fuse from 'fuse.js'
import OpenFormFooter from '../../components/pages/OpenFormFooter.vue'
import OpenCompleteForm from '../../components/open/forms/OpenCompleteForm.vue'
import Breadcrumb from "../../components/common/Breadcrumb.vue";
import SeoMeta from "../../mixins/seo-meta";
const loadTemplates = function () {
store.commit('open/templates/startLoading')
@ -66,6 +67,8 @@ const loadTemplates = function () {
}
export default {
mixins: [SeoMeta],
components: {Breadcrumb, OpenFormFooter, OpenCompleteForm},
beforeRouteEnter(to, from, next) {

View File

@ -41,6 +41,7 @@ import store from '~/store'
import {mapGetters, mapState} from 'vuex'
import Fuse from 'fuse.js'
import OpenFormFooter from '../../components/pages/OpenFormFooter.vue'
import SeoMeta from "../../mixins/seo-meta";
const loadTemplates = function () {
store.commit('open/templates/startLoading')
@ -50,6 +51,8 @@ const loadTemplates = function () {
}
export default {
mixins: [SeoMeta],
components: {OpenFormFooter},
beforeRouteEnter(to, from, next) {
@ -59,7 +62,7 @@ export default {
props: {
metaTitle: {type: String, default: 'Templates'},
metaDescription: {type: String, default: 'Public templates for create form quickly!'}
metaDescription: {type: String, default: 'Our collection of beautiful templates to create your own forms!'}
},
data() {