forked from t3-oss/create-t3-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.astro
24 lines (21 loc) · 773 Bytes
/
index.astro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
import IndexPage from "../../../components/docs/indexPage.astro";
import { type Frontmatter, SIDEBAR } from "../../../config";
import { getLanguageFromURL } from "../../../languages";
import Layout from "../../../layouts/docs.astro";
const frontmatter: Frontmatter = {
title: "Использование",
layout: "docs",
description: "Научитесь использовать различные технологии из T3 Stack.",
};
const lang = getLanguageFromURL(Astro.url.pathname);
const sidebarEntries = SIDEBAR[lang]["Usage"]!;
const files = await Astro.glob("./*.{md,mdx,astro}");
---
<Layout frontmatter={frontmatter} headings={[]}>
<IndexPage
frontmatter={frontmatter}
sidebarEntries={sidebarEntries}
files={files}
/>
</Layout>