fix(build): fix build issues
- remove games reference after removing collection - update obsolote localizations
This commit is contained in:
parent
a85f9adc9b
commit
218216dcd8
12 changed files with 234 additions and 363 deletions
|
|
@ -1,20 +1,20 @@
|
|||
---
|
||||
import { changeLanguage } from 'i18next';
|
||||
import type { InferGetStaticPropsType, GetStaticPaths } from 'astro';
|
||||
import { getCollection } from 'astro:content';
|
||||
import Layout from '@layouts/Layout.astro';
|
||||
import Toc from '@components/Toc/Toc';
|
||||
import Card from '@components/Card.astro';
|
||||
import Button from '@components/Button/Button.astro';
|
||||
import { changeLanguage } from "i18next";
|
||||
import type { InferGetStaticPropsType, GetStaticPaths } from "astro";
|
||||
import { getCollection } from "astro:content";
|
||||
import Layout from "@layouts/Layout.astro";
|
||||
import Toc from "@components/Toc/Toc";
|
||||
import Card from "@components/Card.astro";
|
||||
import Button from "@components/Button/Button.astro";
|
||||
|
||||
changeLanguage('en');
|
||||
changeLanguage("en");
|
||||
|
||||
export const getStaticPaths = (async () => {
|
||||
const entries = await getCollection('portafolio');
|
||||
return entries.map((entry) => ({
|
||||
params: { slug: entry.slug },
|
||||
props: entry,
|
||||
}));
|
||||
const entries = await getCollection("portafolio");
|
||||
return entries.map((entry) => ({
|
||||
params: { slug: entry.slug },
|
||||
props: entry,
|
||||
}));
|
||||
}) satisfies GetStaticPaths;
|
||||
type Props = InferGetStaticPropsType<typeof getStaticPaths>;
|
||||
const entry = Astro.props;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue