Migrate to nuxt content v3. Change articles layout.

This commit is contained in:
2025-03-15 19:57:25 +02:00
parent 5ad3e7b393
commit 64afeb8091
7 changed files with 947 additions and 510 deletions

View File

@@ -1,8 +1,8 @@
<script setup lang="ts">
import type { ParsedContent } from "@nuxt/content/dist/runtime/types";
import { formatDate } from "@vueuse/core";
interface Props {
article: ParsedContent;
article: any;
}
const { article } = defineProps<Props>();
@@ -10,8 +10,10 @@ const date = useDateFormat(article.date, "Do of MMMM YYYY");
</script>
<template>
<ULink class="font-semibold hover:underline" :to="article._path">{{
<ULink class="font-semibold hover:underline" :to="article.path">{{
article.title
}}</ULink>
<div class="text-xs text-slate-500">{{ date }}</div>
<div class="text-xs text-slate-500">
{{ date }}
</div>
</template>