-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathabout.astro
37 lines (34 loc) · 1.22 KB
/
about.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
25
26
27
28
29
30
31
32
33
34
35
36
37
---
import BaseHead from "@/theme-simple/_blocks/BaseHead.astro";
import SideBar from "@/theme-simple/_blocks/SideBar.astro";
import BaseFoot from "@/theme-simple/_blocks/BaseFoot.astro";
import { config } from "@/theme-simple/config";
import BlogSingle from "@/theme-simple/_blocks/BlogSingle.astro";
// import { frontmatter, Content } from "@content/pages/about.md";
import { getEntry } from "astro:content";
const about = await getEntry("pages", "about");
const { Content } = await about.render();
---
<!DOCTYPE html>
<html lang="en">
<head>
<BaseHead title={about.data.title} subtitle={config.site.title} description={about.data.description} image={about.data.heroImage || config.site.image} />
</head>
<body>
<div id="app" class="main">
<SideBar
menus={config.menus}
site={config.site}
author={config.author}
/>
<div class="main-container">
<div class="content-container" data-aos="fade-up">
<BlogSingle {...about.data}>
<Content />
</BlogSingle>
</div>
</div>
</div>
<BaseFoot />
</body>
</html>