Nuxt Content 3 migration #12

Merged
eggy merged 81 commits from js into master 2022-08-10 18:38:39 -04:00
3 changed files with 13 additions and 4 deletions
Showing only changes of commit d356ed4dbf - Show all commits

View File

@ -5,7 +5,7 @@ const { project, reverse = false } = defineProps<{
reverse?: boolean;
}>();
const imgUrl = `url(/images/projects/${project.img ?? ""})`;
const imgUrl = `url(/images/projects/${project.img ?? "unknown.png"})`;
</script>
<template>

View File

@ -3,5 +3,14 @@
* @param title The 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",
},
],
});
}

View File

@ -43,14 +43,14 @@ const captionText =
{{ tag }}
</Tag>
</div>
<ContentDoc tag="article" class="pt-0 w-full">
<ContentRenderer :value="doc" tag="article" class="pt-0 w-full">
<template #empty>
<p>No description found.</p>
</template>
<template #not-found>
<h1>404 - Not Found</h1>
</template>
</ContentDoc>
</ContentRenderer>
</div>
</template>