added vue-meta plugin, fixed article prev next, fixed page title on articles

This commit is contained in:
2020-12-24 19:05:45 +01:00
parent 78155f83b8
commit c1f117d7bb
7 changed files with 114 additions and 51 deletions

View File

@ -31,6 +31,9 @@ import router from 'vuejs/route'
// import * as Locales from 'assets/i18n/locales.json'
import { i18n, loadLanguageAsync } from 'vuejs/i18n'
import VueMeta from 'vue-meta'
Vue.use(VueMeta)
import VUserBlock from 'vuejs/components/Block/UserBlock'
import VMainContent from 'vuejs/components/Content/MainContent'
import VSearchBlock from 'vuejs/components/Block/SearchBlock'
@ -273,6 +276,12 @@ import 'theme/assets/styles/main.scss'
_v_main_content = new Vue({
store,
i18n,
metaInfo: {
// if no subcomponents specify a metaInfo.title, this title will be used
title: "materiO'",
// all titles will be injected into this template
titleTemplate: "%s | materiO'"
},
render: h => h(VMainContent, { props: { id: id, html: main_html, isfront: drupalSettings.path.isFront } })
}).$mount('#' + id)
}