Fix titles

This commit is contained in:
2021-04-18 19:35:52 +02:00
parent 4cc9c416f7
commit b835cc3942

View File

@@ -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
} }