fix: make <Head> work in client (#3252)
Closes #3310 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Bartek Iwańczuk
Claude Opus 4.6
parent
19d3589b9b
commit
a79b155e79
@@ -0,0 +1,16 @@
|
||||
import type { PageProps } from "fresh";
|
||||
|
||||
export default function App({ Component }: PageProps) {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="custom" content="foo" />
|
||||
</head>
|
||||
<body>
|
||||
<Component />
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { HeadCounter } from "../../islands/tests/HeadCounter.tsx";
|
||||
|
||||
export default function Page() {
|
||||
return <HeadCounter />;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { HeadMeta } from "../../islands/tests/HeadMeta.tsx";
|
||||
|
||||
export default function Page() {
|
||||
return <HeadMeta />;
|
||||
}
|
||||
Reference in New Issue
Block a user