feat: allow layout and _app overrides (#1611)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { LayoutProps, RouteConfig } from "$fresh/server.ts";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
rootLayout: true,
|
||||
};
|
||||
|
||||
export default function OverrideLayout({ Component }: LayoutProps) {
|
||||
return (
|
||||
<div class="override-layout">
|
||||
<Component />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user