Skip to content

Commit dec0373

Browse files
committed
Global: use <Partial />; change heading size
1 parent aea667c commit dec0373

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

routes/_app.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { PageProps } from "fresh";
2-
import { asset } from "fresh/runtime";
2+
import { asset, Partial } from "fresh/runtime";
33

44
export default function App({ Component }: PageProps) {
55
return (
@@ -12,18 +12,20 @@ export default function App({ Component }: PageProps) {
1212
<link rel="stylesheet" href={asset("/reset.css")} />
1313
<link rel="stylesheet" href={asset("/style.css")} />
1414

15-
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
16-
<link rel="icon" type="image/png" href="/favicon.png" />
15+
<link rel="icon" type="image/svg+xml" href={asset("/favicon.svg")} />
16+
<link rel="icon" type="image/png" href={asset("/favicon.png")} />
1717
</head>
1818
<body>
19-
<main>
19+
<main f-client-nav>
2020
<header>
2121
<a href="/">Home</a>
2222
<a href="/posts">Posts</a>
2323
<a href="/notes">Notes</a>
2424
</header>
2525

26-
<Component />
26+
<Partial name="body">
27+
<Component />
28+
</Partial>
2729

2830
<footer>
2931
<div>treuks © 2025</div>

static/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,3 +153,7 @@ code {
153153
text-decoration: var(--shiki-dark-text-decoration) !important;
154154
}
155155
}
156+
157+
h1, h2, h3 {
158+
font-weight: 300;
159+
}

0 commit comments

Comments
 (0)