Blogs
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m7s

This commit is contained in:
2026-03-19 02:04:06 +01:00
parent 0eb3e223aa
commit edfb14770d
17 changed files with 4098 additions and 29 deletions

View File

@@ -0,0 +1,36 @@
<script setup>
import PageHeader from '~/components/parts/PageHeader.vue';
const slug = useRoute().params.slug;
const { locale } = useI18n();
const { data: post } = await useAsyncData(`blog-${slug}`, () => {
return queryCollection(`blog_${locale.value}`).path(`/blog/${locale.value}/${slug}`).first()
})
</script>
<template>
<!-- Render the blog post as Prose & Vue components -->
<PageHeader></PageHeader>
<Container>
<ContentRenderer :value="post" class="blog" />
</Container>
<Footer></Footer>
</template>
<style lang="scss">
.blog {
h2 {
a {
text-decoration: none;
color: var(--color-text);
}
}
img {
margin: auto;
display: flex;
max-height: 400px;
}
}
</style>