Fix issue #19, adding noindex,nofollow meta tag to document page

This commit is contained in:
Eric Allam
2022-04-29 13:05:31 +01:00
parent 0355b210af
commit c2c99aa71c
+2 -1
View File
@@ -88,10 +88,11 @@ export const meta: MetaFunction = ({
data: LoaderData | undefined;
}) => {
if (!data) {
return { title: "JSON Hero" };
return { title: "JSON Hero", robots: "noindex,nofollow" };
}
return {
title: `JSON Hero - ${data.doc.title}`,
robots: "noindex,nofollow",
};
};