- Inserted Prerendering plugin('prerender-spa-plugin') to create HTML pages (for Google... crawler)
- Added Meta Tags (title, description and keywords)
This commit is contained in:
14
src/mixins/mixin-metatags.ts
Normal file
14
src/mixins/mixin-metatags.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Vue from 'vue'
|
||||
import Component from 'vue-class-component'
|
||||
import { IMetaTags } from '@src/model'
|
||||
import { tools } from '@src/store/Modules/tools'
|
||||
|
||||
// You can declare a mixin as the same style as components.
|
||||
@Component
|
||||
export default class MixinMetaTags extends Vue {
|
||||
public mymeta: IMetaTags = {title: '', description: '', keywords: ''}
|
||||
|
||||
public setmeta(mymeta: IMetaTags) {
|
||||
this.mymeta = mymeta
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user