Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
Signed-off-by: 🐼 Samrose Ahmed 🐼 <[email protected]>
  • Loading branch information
Samrose-Ahmed committed Oct 30, 2023
1 parent 7ff6049 commit b162051
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
9 changes: 9 additions & 0 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,20 @@ const config = {
tagName: "script",
attributes: {},
innerHTML: `
function addNoindexMetaTag() {
var metaTag = document.createElement('meta');
metaTag.name = 'robots';
metaTag.content = 'noindex';
var head = document.head || document.getElementsByTagName('head')[0];
head.appendChild(metaTag);
}
if (window.location.pathname.startsWith("/blog")) {
window.location.href = "https://matanosecurity.com/blog";
addNoindexMetaTag();
}
if (!window.location.pathname.startsWith("/docs")) {
window.location.href = "https://matanosecurity.com";
addNoindexMetaTag();
}`,
}
],
Expand Down
3 changes: 1 addition & 2 deletions static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
User-agent: *
Disallow: /blog*
Disallow: /docs*
Allow: /

1 comment on commit b162051

@vercel
Copy link

@vercel vercel bot commented on b162051 Oct 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.