Verschlanke Dokumentation auf Bedienung und leite Einstieg direkt dorthin
This commit is contained in:
@@ -1,25 +1,7 @@
|
||||
<script setup lang="ts">
|
||||
const { data: page } = await useAsyncData('index', () => queryCollection('landing').path('/').first())
|
||||
if (!page.value) {
|
||||
throw createError({ statusCode: 404, statusMessage: 'Seite nicht gefunden', fatal: true })
|
||||
}
|
||||
|
||||
const title = page.value.seo?.title || page.value.title
|
||||
const description = page.value.seo?.description || page.value.description
|
||||
|
||||
useSeoMeta({
|
||||
titleTemplate: '',
|
||||
title,
|
||||
ogTitle: title,
|
||||
description,
|
||||
ogDescription: description
|
||||
})
|
||||
await navigateTo('/bedienung', { redirectCode: 302 })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<ContentRenderer
|
||||
v-if="page"
|
||||
:value="page"
|
||||
:prose="false"
|
||||
/>
|
||||
<div />
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user