meta on Announcements
This commit is contained in:
@@ -2,7 +2,8 @@
|
|||||||
v-container#home(fluid)
|
v-container#home(fluid)
|
||||||
|
|
||||||
//- Announcements
|
//- Announcements
|
||||||
Announcement(v-for='announcement in announcements' :key='`a_${announcement.id}`' :announcement='announcement')
|
#announcements.mr-1
|
||||||
|
Announcement(v-for='announcement in announcements' :key='`a_${announcement.id}`' :announcement='announcement')
|
||||||
|
|
||||||
//- Calendar and search bar
|
//- Calendar and search bar
|
||||||
v-row
|
v-row
|
||||||
@@ -54,9 +55,23 @@ export default {
|
|||||||
// intersecting: {}
|
// intersecting: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
head () {
|
||||||
...mapState(['settings', 'announcements'])
|
return {
|
||||||
|
title: this.settings.title,
|
||||||
|
meta: [
|
||||||
|
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
||||||
|
{ hid: 'description', name: 'description', content: this.settings.description },
|
||||||
|
{ hid: 'og-description', name: 'og:description', content: this.settings.description },
|
||||||
|
{ hid: 'og-title', property: 'og:title', content: this.settings.title },
|
||||||
|
{ hid: 'og-url', property: 'og:url', content: this.settings.baseurl },
|
||||||
|
{ property: 'og:image', content: this.settings.baseurl + '/favicon.ico' }
|
||||||
|
],
|
||||||
|
link: [
|
||||||
|
{ rel: 'alternate', type: 'application/rss+xml', title: this.settings.title, href: this.settings.baseurl + '/feed/rss' }
|
||||||
|
]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
computed: mapState(['settings', 'announcements']),
|
||||||
methods: {
|
methods: {
|
||||||
// onIntersect (isIntersecting, eventId) {
|
// onIntersect (isIntersecting, eventId) {
|
||||||
// this.intersecting[eventId] = isIntersecting
|
// this.intersecting[eventId] = isIntersecting
|
||||||
@@ -72,6 +87,7 @@ export default {
|
|||||||
}).then(events => {
|
}).then(events => {
|
||||||
this.events = events
|
this.events = events
|
||||||
this.setFilters(this.filters)
|
this.setFilters(this.filters)
|
||||||
|
this.$nuxt.$loading.finish()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
placeClick (place_id) {
|
placeClick (place_id) {
|
||||||
@@ -99,6 +115,7 @@ export default {
|
|||||||
this.first = false
|
this.first = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.$nuxt.$loading.start()
|
||||||
this.selectedDay = null
|
this.selectedDay = null
|
||||||
|
|
||||||
// check if current month is selected
|
// check if current month is selected
|
||||||
@@ -127,28 +144,14 @@ export default {
|
|||||||
this.selectedDay = date
|
this.selectedDay = date
|
||||||
this.updateEvents()
|
this.updateEvents()
|
||||||
}
|
}
|
||||||
},
|
|
||||||
head () {
|
|
||||||
return {
|
|
||||||
title: this.settings.title,
|
|
||||||
meta: [
|
|
||||||
// hid is used as unique identifier. Do not use `vmid` for it as it will not work
|
|
||||||
{ hid: 'description', name: 'description', content: this.settings.description },
|
|
||||||
{ hid: 'og-description', name: 'og:description', content: this.settings.description },
|
|
||||||
{ hid: 'og-title', property: 'og:title', content: this.settings.title },
|
|
||||||
{ hid: 'og-url', property: 'og:url', content: this.settings.baseurl },
|
|
||||||
{ property: 'og:image', content: this.settings.baseurl + '/favicon.ico' }
|
|
||||||
],
|
|
||||||
link: [
|
|
||||||
{ rel: 'alternate', type: 'application/rss+xml', title: this.settings.title, href: this.settings.baseurl + '/feed/rss' }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang='less'>
|
<style lang='less'>
|
||||||
#home {
|
#home {
|
||||||
max-width: 1400px;
|
max-width: 1400px;
|
||||||
|
padding-right: 0px;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
#events {
|
#events {
|
||||||
|
|||||||
Reference in New Issue
Block a user