fix: Partials not working on error pages (#2072)
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<Partial name="body">
|
||||
<p class="status-404">Not found - Error 404</p>
|
||||
</Partial>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
|
||||
export default function ModeDemo() {
|
||||
return (
|
||||
<div f-client-nav>
|
||||
<Partial name="body">
|
||||
<p class="status">default content</p>
|
||||
</Partial>
|
||||
<p>
|
||||
<a
|
||||
class="update-link"
|
||||
href="/error_404/asdf"
|
||||
>
|
||||
update
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user