added vue-meta plugin, fixed article prev next, fixed page title on articles
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user