joinpeertube/app/App.vue

36 lines
1.2 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="{
'link[rel^=shortcut]': {href: `${$root['/']}icons/favicon.png`},
'link[rel=apple-touch-icon]': {href: `${$root['/']}icons/apple-touch-icon.png`},
'meta[property^=og][property$=title]': {content: `${$t('meta.title')}`},
'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')}`},
'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>