config ln array changed

This commit is contained in:
Al Murad Uzzaman
2024-05-16 17:11:25 +06:00
parent 97d6f22dcb
commit c137b8afcd
24 changed files with 200 additions and 362 deletions
+2 -3
View File
@@ -1,16 +1,15 @@
---
import AuthorCard from "@/components/AuthorCard.astro";
import config from "@/config/config.json";
import Base from "@/layouts/Base.astro";
import { getListPage, getSinglePage } from "@/lib/contentParser.astro";
import { supportedLang } from "@/lib/utils/i18nUtils";
import PageHeader from "@/partials/PageHeader.astro";
import { type ContentEntryMap } from "astro:content";
const COLLECTION_FOLDER = "authors";
export function getStaticPaths() {
const { supported } = config.language;
const paths = supported.map((lang) => ({
const paths = supportedLang.map((lang) => ({
params: { lang: lang || undefined },
}));
return paths;