@@ -1,13 +1,9 @@
|
||||
import { PageProps } from "$fresh/server.ts";
|
||||
import { Head } from "$fresh/runtime.ts";
|
||||
import Header from "$fresh/www/components/Header.tsx";
|
||||
import type { PageProps } from "@fresh/core";
|
||||
import Header from "../../components/Header.tsx";
|
||||
|
||||
export default function Layout({ Component, state }: PageProps) {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<meta name="robots" content="noindex" />
|
||||
</Head>
|
||||
<Header active="" title="" />
|
||||
|
||||
<div class="w-full max-w-screen-xl px-4">
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
import { df } from "../../utils/state.ts";
|
||||
|
||||
export const handler = df.defineMiddleware((ctx) => {
|
||||
ctx.state.noIndex = true;
|
||||
return ctx.next();
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
import { RouteConfig } from "$fresh/server.ts";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Head, Partial } from "$fresh/runtime.ts";
|
||||
import { RouteConfig } from "$fresh/server.ts";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Partial } from "$fresh/runtime.ts";
|
||||
import { RouteConfig } from "$fresh/server.ts";
|
||||
import { Partial } from "@fresh/core/runtime";
|
||||
import type { RouteConfig } from "@fresh/core";
|
||||
|
||||
export const config: RouteConfig = {
|
||||
skipAppWrapper: true,
|
||||
|
||||
Reference in New Issue
Block a user