fix(home): move prerender export inside frontmatter so it stops rendering as text
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,8 @@ import { generators } from "@/data/generators";
|
|||||||
import { useT } from "@/i18n/translations";
|
import { useT } from "@/i18n/translations";
|
||||||
import type { Lang } from "@/i18n/translations";
|
import type { Lang } from "@/i18n/translations";
|
||||||
|
|
||||||
|
export const prerender = true;
|
||||||
|
|
||||||
const lang = (Astro.currentLocale as Lang) || "en";
|
const lang = (Astro.currentLocale as Lang) || "en";
|
||||||
const T = useT(lang);
|
const T = useT(lang);
|
||||||
|
|
||||||
@@ -18,7 +20,6 @@ const webSiteSchema = {
|
|||||||
inLanguage: lang,
|
inLanguage: lang,
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
export const prerender = true;
|
|
||||||
|
|
||||||
<BaseLayout>
|
<BaseLayout>
|
||||||
<script
|
<script
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ import { generators } from "@/data/generators";
|
|||||||
import { useT } from "@/i18n/translations";
|
import { useT } from "@/i18n/translations";
|
||||||
import type { Lang } from "@/i18n/translations";
|
import type { Lang } from "@/i18n/translations";
|
||||||
|
|
||||||
|
export const prerender = true;
|
||||||
|
|
||||||
const lang = (Astro.currentLocale as Lang) || "en";
|
const lang = (Astro.currentLocale as Lang) || "en";
|
||||||
const T = useT(lang);
|
const T = useT(lang);
|
||||||
|
|
||||||
@@ -18,7 +20,6 @@ const webSiteSchema = {
|
|||||||
inLanguage: lang,
|
inLanguage: lang,
|
||||||
};
|
};
|
||||||
---
|
---
|
||||||
export const prerender = true;
|
|
||||||
|
|
||||||
<BaseLayout>
|
<BaseLayout>
|
||||||
<script
|
<script
|
||||||
|
|||||||
Reference in New Issue
Block a user