docs: make 2.x the default version (#3369)
This commit is contained in:
@@ -39,6 +39,9 @@ export default function ErrorPage(props: PageProps) {
|
||||
}
|
||||
}
|
||||
|
||||
// deno-lint-ignore no-console
|
||||
console.error(error);
|
||||
|
||||
return ServerCodePage({
|
||||
serverCode: 500,
|
||||
codeDescription: "Oops! Something went wrong.",
|
||||
|
||||
@@ -3,8 +3,8 @@ import type { Context } from "fresh";
|
||||
const REDIRECTS: Record<string, string> = {
|
||||
"/docs/getting-started/fetching-data":
|
||||
"/docs/getting-started/custom-handlers",
|
||||
"/docs/canary/examples/modifying-the-head": "/docs/canary/advanced/head",
|
||||
"/docs/canary/concepts/builder": "/docs/canary/advanced/builder",
|
||||
"/docs/canary/examples/modifying-the-head": "/docs/advanced/head",
|
||||
"/docs/canary/concepts/builder": "/docs/advanced/builder",
|
||||
};
|
||||
|
||||
export async function handler<T>(ctx: Context<T>) {
|
||||
|
||||
@@ -47,9 +47,7 @@ export const handler = define.handlers({
|
||||
},
|
||||
});
|
||||
|
||||
export default define.page<typeof handler>(function MainPage(props) {
|
||||
const origin = `${props.url.protocol}//${props.url.host}`;
|
||||
|
||||
export default define.page<typeof handler>(function MainPage() {
|
||||
return (
|
||||
<div class="flex flex-col min-h-screen bg-white">
|
||||
<div class="bg-transparent flex flex-col relative z-10">
|
||||
@@ -57,7 +55,7 @@ export default define.page<typeof handler>(function MainPage(props) {
|
||||
<Header title="" active="/" />
|
||||
</div>
|
||||
<div class="flex flex-col -mt-20 relative">
|
||||
<Hero origin={origin} />
|
||||
<Hero />
|
||||
<Simple />
|
||||
<RenderingSection />
|
||||
<IslandsSection />
|
||||
|
||||
Reference in New Issue
Block a user