-
Notifications
You must be signed in to change notification settings - Fork 128
/
default.vue
executable file
·106 lines (105 loc) · 2.21 KB
/
default.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<template>
<div
:class="
`site-layout-width-${$siteConfig.layout.width} posts-theme-${$siteConfig.posts.theme}`
"
>
<site-nav />
<nuxt />
<news-letter-slide-out v-if="$siteConfig.newsletter.on" />
<site-footer></site-footer>
</div>
</template>
<script>
import 'animate.css/animate.min.css'
export default {
transition: 'slide-fade',
head() {
return {
title: `${this.$store.state.title} | ${this.$siteConfig.siteName}`,
meta: [
{
hid: 'description',
name: 'description',
content: this.$store.state.subtitle
},
{
hid: 'og:description',
property: 'og:description',
content: this.$store.state.subtitle
},
{
hid: 'og:title',
property: 'og:title',
content: this.$store.state.title
},
{
hid: 'og:image',
property: 'og:image',
content: this.$store.state.featureImage
},
{
hid: 'og:url',
property: 'og:url',
content: this.url
},
{
hid: 'twitter:card',
name: 'twitter:card',
content: `summary_large_image`
},
{
hid: 'og:site_name',
name: 'og:site_name',
content: this.$siteConfig.siteName
}
]
}
},
data() {
return {
items: [
{
title: 'Home',
icon: 'home',
to: { name: 'index' }
},
{
title: 'Inspire',
icon: 'lightbulb',
to: { name: 'inspire' }
}
]
}
},
watch: {
$route(to, from) {
this.$eventBus.$emit('route-changed', this.$route)
}
},
mounted() {
this.$cms.lifeCycleHooks.mounted()
},
beforeCreate() {
this.$cms.lifeCycleHooks.beforeCreate()
},
created() {
this.$cms.lifeCycleHooks.created()
},
beforeMount() {
this.$cms.lifeCycleHooks.beforeMount()
},
beforeUpdate() {
this.$cms.lifeCycleHooks.beforeUpdate()
},
updated() {
this.$cms.lifeCycleHooks.updated()
},
beforeDestroy() {
this.$cms.lifeCycleHooks.beforeDestroy()
},
destroy() {
this.$cms.lifeCycleHooks.destroy()
}
}
</script>