Skip to content

Commit

Permalink
fix: index meta tag
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterds committed Feb 11, 2025
1 parent d2a1dc5 commit caa3578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => {

export const meta: MetaFunction<typeof loader> = ({ error, data }) => {
if (error) {
return [{ title: 'Oops, something went wrong!' }, { name: 'robots', content: 'noindex' }];
return [{ title: 'Oops, something went wrong!' }];
}

const title = 'Wouter De Schuyter';
Expand Down Expand Up @@ -76,7 +76,7 @@ export function Layout({ children }: { children: ReactNode }) {
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1" />
<meta name="robots" content="index,follow" />
<meta name="robots" content={data?.canonical ? 'index,follow' : 'noindex,follow'} />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
<link
Expand Down

0 comments on commit caa3578

Please sign in to comment.