joinpeertube/app/App.vue

38 lines
1.3 KiB
Vue
Raw Normal View History

2018-09-21 21:00:42 +00:00
<template>
<div id="app">
<vue-headful
:title="$t('meta.title')"
:description="$t('meta.description')"
2018-09-21 21:00:42 +00:00
:html="{ body: {id: $route.meta.id } }"
:lang="$route.meta.lang"
:head="{
2019-09-30 11:22:03 +00:00
'link[rel^=shortcut]': {href: `${$root.baseurl}/icons/favicon.png`},
'link[rel=apple-touch-icon]': {href: `${$root.baseurl}/icons/apple-touch-icon.png`},
2019-09-26 20:28:25 +00:00
'link[rel=canonical]': {href: `${$root.canonical}${$route.path}`},
'meta[property^=og][property$=title]': {content: `${$t('meta.title')}`},
2019-09-30 11:22:03 +00:00
'meta[property^=og][property$=image]': {content: `${$root.baseurl}/icons/apple-touch-icon.png`},
'meta[property^=og][property$=url]': {content: $root.baseurl},
'meta[property^=og][property$=description]': {content: `${$t('meta.description')}`},
'meta[name^=twitter][name$=title]': {content: `${$t('meta.title')}`},
2019-09-30 11:22:03 +00:00
'meta[name^=twitter][name$=image]': {content: `${$root.baseurl}/icons/apple-touch-icon.png`},
'meta[name^=twitter][name$=description]': {content: `${$t('meta.description')}`},
}"
2018-09-21 21:00:42 +00:00
/>
<header-component></header-component>
<router-view></router-view>
</div>
</template>
<script>
import HeaderComponent from './components/partials/Header.vue'
export default {
name: 'app',
components: {
HeaderComponent,
}
2018-09-21 21:00:42 +00:00
}
</script>