Skip to content

✨ Innovative and open-source visualization application that transforms various data formats, such as JSON, YAML, XML and CSV into interactive graphs.

add meta tags prevent page indexing

AykutSaraca710f345d327
diff --git a/src/pages/404.tsx b/src/pages/404.tsx
index 1315305a..d88d264c 100644
--- a/src/pages/404.tsx
+++ b/src/pages/404.tsx
@@ -1,4 +1,5 @@
import React from "react";
+import Head from "next/head";
import { useRouter } from "next/router";
import styled from "styled-components";
import { Button, Text, Title } from "@mantine/core";
@@ -35,6 +36,9 @@ const NotFound: React.FC = () => {
return (
<Layout>
+ <Head>
+ <meta name="robots" content="noindex,nofollow" />
+ </Head>
<StyledNotFound>
<StyledImageWrapper>
<img src="/assets/404.svg" alt="not found" width={300} height={400} />
diff --git a/src/pages/editor.tsx b/src/pages/editor.tsx
index dd525f51..0ca2816b 100644
--- a/src/pages/editor.tsx
+++ b/src/pages/editor.tsx
@@ -31,6 +31,7 @@ const EditorPage: React.FC = () => {
const { query, isReady } = useRouter();
const checkEditorSession = useFile(state => state.checkEditorSession);
const loading = useJson(state => state.loading);
+ const hasQuery = React.useMemo(() => Object.keys(query), [query]);
React.useEffect(() => {
if (isReady) checkEditorSession(query?.json);
@@ -43,6 +44,7 @@ const EditorPage: React.FC = () => {
<StyledEditorWrapper>
<Head>
<title>Editor | JSON Crack</title>
+ {hasQuery && <meta name="robots" content="noindex,nofollow" />}
</Head>
<StyledPageWrapper>
<Tools />
diff --git a/src/pages/reset-password.tsx b/src/pages/reset-password.tsx
index 873db161..ac06293d 100644
--- a/src/pages/reset-password.tsx
+++ b/src/pages/reset-password.tsx
@@ -77,6 +77,7 @@ const SignIn = () => {
<div>
<Head>
<title>Reset Password | JSON Crack</title>
+ <meta name="robots" content="noindex,nofollow" />
</Head>
<Navbar />
<Paper mx="auto" mt={70} maw={400} p="lg" withBorder>
diff --git a/src/pages/widget.tsx b/src/pages/widget.tsx
index 04e709b4..fbcacfee 100644
--- a/src/pages/widget.tsx
+++ b/src/pages/widget.tsx
@@ -1,5 +1,6 @@
import React from "react";
import dynamic from "next/dynamic";
+import Head from "next/head";
import { useRouter } from "next/router";
import { ThemeProvider } from "styled-components";
import toast from "react-hot-toast";
@@ -58,6 +59,9 @@ const WidgetPage = () => {
return (
<EditorWrapper>
+ <Head>
+ <meta name="robots" content="noindex,nofollow" />
+ </Head>
<ThemeProvider theme={theme === "dark" ? darkTheme : lightTheme}>
<Tools isWidget />
<Graph isWidget />