mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
update changelogs
This commit is contained in:
1 parent
dd769a9aa5
commit
c7ee3dbf7e
1 file changed
+6
-6
@@ -3,21 +3,21 @@ import { AstroSeo } from "@astrolib/seo";
|
|||||||
import { MagicWandIcon, StarFilledIcon } from "@radix-ui/react-icons";
|
import { MagicWandIcon, StarFilledIcon } from "@radix-ui/react-icons";
|
||||||
import { Flex, Heading, Link } from "@radix-ui/themes";
|
import { Flex, Heading, Link } from "@radix-ui/themes";
|
||||||
import { compareVersions } from "compare-versions";
|
import { compareVersions } from "compare-versions";
|
||||||
import { PageWrapper } from "../../../../components/PageWrapper";
|
import { PageWrapper } from "../../../../../components/PageWrapper";
|
||||||
import { getStrings } from "../../../../core/i18n/getStrings";
|
import { getStrings } from "../../../../../core/i18n/getStrings";
|
||||||
import BaseLayout from "../../../../layouts/BaseLayout.astro";
|
import BaseLayout from "../../../../../layouts/BaseLayout.astro";
|
||||||
|
|
||||||
export { getStaticPaths } from "../../index.astro";
|
export { getStaticPaths } from "../../index.astro";
|
||||||
|
|
||||||
// this can't be used in template literal :(
|
// this can't be used in template literal :(
|
||||||
const ROOT = "../../../../../../../docs/changelogs/";
|
const ROOT = "../../../../../../../../docs/changelogs/";
|
||||||
|
|
||||||
const { locale } = Astro.props;
|
const { locale } = Astro.props;
|
||||||
const strings = getStrings(locale);
|
const strings = getStrings(locale);
|
||||||
const versions = Object.keys(
|
const versions = Object.keys(
|
||||||
import.meta.glob("../../../../../../../docs/changelogs/*.md", {
|
import.meta.glob("../../../../../../../../docs/changelogs/*.md", {
|
||||||
eager: true,
|
eager: true,
|
||||||
})
|
}),
|
||||||
)
|
)
|
||||||
.map((file) => file.replace(ROOT, "").replace(".md", ""))
|
.map((file) => file.replace(ROOT, "").replace(".md", ""))
|
||||||
.sort(compareVersions)
|
.sort(compareVersions)
|
||||||
|
|||||||
Reference in new issue
Block a user