mirror of
https://github.com/ArthurDanjou/website-old.git
synced 2026-01-30 11:47:54 +01:00
Fix titles
This commit is contained in:
@@ -28,23 +28,23 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {useAsync, useContext} from "@nuxtjs/composition-api";
|
import {useAsync, useContext, useMeta} from "@nuxtjs/composition-api";
|
||||||
import {Project} from "../../@types/types";
|
import {Project} from "../../@types/types";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "index",
|
name: "index",
|
||||||
head() {
|
head: {},
|
||||||
return {
|
|
||||||
title: `${this.$i18n.t('header.projects')} - Arthur Danjou`
|
|
||||||
}
|
|
||||||
},
|
|
||||||
setup() {
|
setup() {
|
||||||
const { $content } = useContext()
|
const { $content, i18n } = useContext()
|
||||||
|
|
||||||
const projects = useAsync(() => {
|
const projects = useAsync(() => {
|
||||||
return $content('projects').fetch<Project>()
|
return $content('projects').fetch<Project>()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
useMeta( {
|
||||||
|
title: `${i18n.t('header.projects')} - Arthur Danjou`
|
||||||
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
projects
|
projects
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user