fix: math

This commit is contained in:
eggy 2022-08-10 18:34:01 -04:00
parent 783fdd17dc
commit d356ed4dbf
3 changed files with 13 additions and 4 deletions

View File

@ -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>

View File

@ -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",
},
],
});
} }

View File

@ -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>