started coding the docs
This commit is contained in:
@@ -17,7 +17,6 @@ import "../styles/navbar.scss";
|
||||
const isActive =
|
||||
(Astro.url.pathname.startsWith(path) && path !== "/") ||
|
||||
Astro.url.pathname === path;
|
||||
|
||||
return (
|
||||
<div class="navbar-entry">
|
||||
<a href={path} class={isActive ? "active" : ""}>
|
||||
|
12
src/layouts/DocsLayout.astro
Normal file
12
src/layouts/DocsLayout.astro
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
const { frontmatter } = Astro.props;
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
const title = "Docs | " + frontmatter.title;
|
||||
---
|
||||
|
||||
<Layout
|
||||
title={title}
|
||||
description="This is my personal website with my projects, docs and other useful stuff."
|
||||
>
|
||||
<div class="content"><slot /></div>
|
||||
</Layout>
|
@@ -1,5 +1,10 @@
|
||||
---
|
||||
import { date } from "astro/zod";
|
||||
import Layout from "../layouts/Layout.astro";
|
||||
const allDocs = await Astro.glob("./docs/*.mdx");
|
||||
const fileteredDocs = allDocs.sort(
|
||||
(a, b) => +new Date(b.frontmatter.date) - +new Date(a.frontmatter.date),
|
||||
);
|
||||
---
|
||||
|
||||
<Layout
|
||||
|
0
src/pages/docs/discord-sdk-godot.mdx
Normal file
0
src/pages/docs/discord-sdk-godot.mdx
Normal file
@@ -1,5 +1,7 @@
|
||||
main {
|
||||
background-image: url("/diagonal_lines_home.png");
|
||||
background-size: cover, contain;
|
||||
margin-inline: -.6vw;
|
||||
padding-inline: 10vw;
|
||||
|
||||
.home-main-box {
|
||||
|
Reference in New Issue
Block a user