blob: c641af00bfaa11e09e0cf90f45e636aa7079ef93 (
plain)
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
|
import { Link } from "waku";
import { listObsidian } from "../lib/categorization";
export default async function AboutPage() {
const data = await getData();
return (
<div>
<title>{data.title}</title>
<h1 className="text-4xl font-bold tracking-tight">{data.headline}</h1>
<p>{data.body}</p>
<Link to="/" className="mt-4 inline-block underline">
Return home
</Link>
</div>
);
}
const getData = async () => {
const obsidian = await listObsidian();
const data = {
title: "About",
headline: "About Waku",
body: "The minimal React framework",
};
return data;
};
export const getConfig = async () => {
return {
render: "static",
} as const;
};
|