Commit 0a88fab
Changed files (4)
src
src/contents/about.typ
@@ -0,0 +1,8 @@
+#import "./_lib/lib.typ": *
+#show: post-template
+
+#lorem(50)
+
+#lorem(30)
+
+#lorem(40)
src/contents/home.typ
@@ -0,0 +1,8 @@
+#import "./_lib/lib.typ": *
+#show: post-template
+
+#lorem(50)
+
+#lorem(30)
+
+#lorem(40)
src/pages/about.astro
@@ -1,7 +1,11 @@
---
+import Article from "@/contents/about.typ";
import GlobalLayout from "@/layouts/GlobalLayout.astro";
---
<GlobalLayout>
- <h1>About</h1>
+ <article>
+ <h1>About</h1>
+ <Article />
+ </article>
</GlobalLayout>
src/pages/index.astro
@@ -1,8 +1,12 @@
---
import { SITE_CONFIG } from "@/config";
+import Article from "@/contents/home.typ";
import GlobalLayout from "@/layouts/GlobalLayout.astro";
---
<GlobalLayout>
- <h1>{SITE_CONFIG.title}</h1>
+ <article>
+ <h1>{SITE_CONFIG.title}</h1>
+ <Article />
+ </article>
</GlobalLayout>