-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostLayout.astro
More file actions
40 lines (38 loc) · 1.1 KB
/
PostLayout.astro
File metadata and controls
40 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
---
import type { CollectionEntry } from "astro:content";
import BlogPost from "../components/BlogPost.astro";
import Navbar from "../components/Navbar.astro";
import BaseLayout from "./BaseLayout.astro";
interface Props {
post: CollectionEntry<"blog">;
}
const { post } = Astro.props;
---
<BaseLayout title={`milan-codes - ${post.data.title}`}>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/katex@0.15.2/dist/katex.min.css"
integrity="sha384-MlJdn/WNKDGXveldHDdyRP1R4CTHr3FeuDNfhsLPYrq2t0UBkUdK2jyTnXPEK1NQ"
crossorigin="anonymous"
/>
<Navbar />
<BlogPost post={post}>
<slot />
</BlogPost>
<script
src="https://giscus.app/client.js"
data-repo="milan-codes/milan-codes.github.io"
data-repo-id="R_kgDOI5_00w"
data-category="Posts"
data-category-id="DIC_kwDOI5_0084Csa0O"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="en"
data-loading="lazy"
crossorigin="anonymous"
async></script>
</BaseLayout>