docusaurus/assets/js/979385f4.43bba9fb.js
2024-12-06 17:05:41 +00:00

1 line
No EOL
2.7 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["82214"],{24227:function(e,n,t){t.r(n),t.d(n,{metadata:()=>o,contentTitle:()=>r,default:()=>p,assets:()=>d,toc:()=>c,frontMatter:()=>i});var o=JSON.parse('{"type":"mdx","permalink":"/examples/noIndex","source":"@site/src/pages/examples/noIndex.mdx","title":"No Index Page example","description":"This page will not be indexed by search engines because it contains the page following page metadata markup:","frontMatter":{},"lastUpdatedBy":"S\xe9bastien Lorber","lastUpdatedAt":1733504584000,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/src/pages/examples/noIndex.mdx","unlisted":false}'),a=t("24246"),s=t("80980");let i={},r="No Index Page example",d={},c=[];function l(e){let n={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,s.a)(),...e.components},{Head:t}=n;return!t&&function(e,n){throw Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Head",!0),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.header,{children:(0,a.jsx)(n.h1,{id:"no-index-page-example",children:"No Index Page example"})}),"\n",(0,a.jsx)(t,{children:(0,a.jsx)("meta",{name:"robots",content:"nOiNdeX, NoFolLoW"})}),"\n",(0,a.jsxs)(n.p,{children:["This page will not be indexed by search engines because it contains the page following ",(0,a.jsx)(n.a,{href:"/docs/seo#single-page-metadata",children:"page metadata"})," markup:"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-html",children:'<head>\n <meta name="robots" content="noindex, nofollow" />\n</head>\n'})}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["The sitemap plugin filters pages containing a ",(0,a.jsx)(n.code,{children:"noindex"})," content value. This page doesn't appear in Docusaurus ",(0,a.jsx)(n.a,{href:"pathname:///sitemap.xml",children:"sitemap.xml"})," file."]})}),"\n",(0,a.jsx)(n.admonition,{type:"note",children:(0,a.jsxs)(n.p,{children:["Robots directives are ",(0,a.jsx)(n.a,{href:"https://developers.google.com/search/docs/advanced/robots/robots_meta_tag#directives",children:"case-insensitive"}),"."]})})]})}function p(e={}){let{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},80980:function(e,n,t){t.d(n,{Z:function(){return r},a:function(){return i}});var o=t(27378);let a={},s=o.createContext(a);function i(e){let n=o.useContext(s);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);