diff options
| author | aman333nolawz <amananudhiu@gmail.com> | 2026-04-04 02:18:34 +0530 |
|---|---|---|
| committer | aman333nolawz <amananudhiu@gmail.com> | 2026-04-04 02:18:34 +0530 |
| commit | 5878b7cdcdd74b5936ba81d59e28fa154f82724b (patch) | |
| tree | 515cb791d0337b1342395ec14b4907a45cbe81f6 /src/pages/contribute.astro | |
| parent | 0141b8797e4f01094133eae0c062638d88fb552d (diff) | |
Added contribution guide to footer
Diffstat (limited to 'src/pages/contribute.astro')
| -rw-r--r-- | src/pages/contribute.astro | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/pages/contribute.astro b/src/pages/contribute.astro new file mode 100644 index 0000000..552c235 --- /dev/null +++ b/src/pages/contribute.astro @@ -0,0 +1,44 @@ +--- +import Breadcrumbs from '@/components/Breadcrumbs.astro' +import PageHead from '@/components/PageHead.astro' +import TOCHeader from '@/components/TOCHeader.astro' +import TOCSidebar from '@/components/TOCSidebar.astro' +import Layout from '@/layouts/Layout.astro' + +import { Content, getHeadings } from './_contribute.mdx' +const headings = await getHeadings() + +const sections = [ + { + type: 'parent', + title: 'Contribution Guide', + headings: headings, + }, +] +--- + +<Layout> + <PageHead slot="head" title="Contribution Guide" /> + { + headings.length > 0 && ( + <TOCHeader slot="table-of-contents" headings={headings} /> + ) + } + + <section + class="mt-8 grid grid-cols-[minmax(0px,1fr)_min(calc(var(--breakpoint-md)-2rem),100%)_minmax(0px,1fr)] gap-y-6" + > + <div class="col-start-2"> + <Breadcrumbs + items={[{ label: 'Contribute', icon: 'lucide:git-pull-request' }]} + /> + </div> + + <TOCSidebar sections={sections} currentPostId="contribute" /> + + <article class="prose dark:prose-invert col-start-2 max-w-none"> + <Content /> + </article> + </section> +</Layout> + |
