From b022a856885f162f7bd3b632acce621cfa34758f Mon Sep 17 00:00:00 2001 From: robsongajunior Date: Mon, 13 Jan 2025 15:25:57 -0300 Subject: [PATCH] chore: addint robots no index by host --- src/components/HeadCommon.astro | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/HeadCommon.astro b/src/components/HeadCommon.astro index ae19b97eed..ea07cea007 100644 --- a/src/components/HeadCommon.astro +++ b/src/components/HeadCommon.astro @@ -1,5 +1,8 @@ --- -import { FAVICON_URL, FONTS_URL } from '~/consts'; +import { FAVICON_URL, FONTS_URL, SITE_URL } from '~/consts'; + +let noindex = false // use like param if necessary implement by page, today all the pages of docs are indexed +const isToNoIndex = /https:\/\/www.azion.com/.test(SITE_URL) && !noindex ? false : true --- @@ -7,6 +10,15 @@ import { FAVICON_URL, FONTS_URL } from '~/consts'; +{ + isToNoIndex ? ( + + ) : ( + + ) +} + +