Nuxt Content 3 migration #12
@ -5,7 +5,7 @@ const { project, reverse = false } = defineProps<{
|
|||||||
reverse?: boolean;
|
reverse?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const imgUrl = `url(/images/projects/${project.img ?? ""})`;
|
const imgUrl = `url(/images/projects/${project.img ?? "unknown.png"})`;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -3,5 +3,14 @@
|
|||||||
* @param title The title string.
|
* @param title The title string.
|
||||||
*/
|
*/
|
||||||
export function useTitle(title: string) {
|
export function useTitle(title: string) {
|
||||||
useHead({ title: `${title} | Eggworld` });
|
useHead({
|
||||||
|
title: `${title} | Eggworld`,
|
||||||
|
link: [
|
||||||
|
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
|
||||||
|
{
|
||||||
|
rel: "stylesheet",
|
||||||
|
href: "https://cdn.jsdelivr.net/npm/katex@0.16.0/dist/katex.min.css",
|
||||||
|
},
|
||||||
|
],
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
@ -43,14 +43,14 @@ const captionText =
|
|||||||
{{ tag }}
|
{{ tag }}
|
||||||
</Tag>
|
</Tag>
|
||||||
</div>
|
</div>
|
||||||
<ContentDoc tag="article" class="pt-0 w-full">
|
<ContentRenderer :value="doc" tag="article" class="pt-0 w-full">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
<p>No description found.</p>
|
<p>No description found.</p>
|
||||||
</template>
|
</template>
|
||||||
<template #not-found>
|
<template #not-found>
|
||||||
<h1>404 - Not Found</h1>
|
<h1>404 - Not Found</h1>
|
||||||
</template>
|
</template>
|
||||||
</ContentDoc>
|
</ContentRenderer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user