mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
1 line
No EOL
2.7 KiB
JavaScript
1 line
No EOL
2.7 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["82214"],{73208:function(e,n,t){t.r(n),t.d(n,{frontMatter:()=>i,default:()=>p,contentTitle:()=>r,assets:()=>d,toc:()=>c,metadata:()=>a});var a=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":"pedenys","lastUpdatedAt":1741859625000,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/src/pages/examples/noIndex.mdx","unlisted":false}'),o=t(85893),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,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.header,{children:(0,o.jsx)(n.h1,{id:"no-index-page-example",children:"No Index Page example"})}),"\n",(0,o.jsx)(t,{children:(0,o.jsx)("meta",{name:"robots",content:"nOiNdeX, NoFolLoW"})}),"\n",(0,o.jsxs)(n.p,{children:["This page will not be indexed by search engines because it contains the page following ",(0,o.jsx)(n.a,{href:"/docs/seo#single-page-metadata",children:"page metadata"})," markup:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-html",children:'<head>\n <meta name="robots" content="noindex, nofollow" />\n</head>\n'})}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["The sitemap plugin filters pages containing a ",(0,o.jsx)(n.code,{children:"noindex"})," content value. This page doesn't appear in Docusaurus ",(0,o.jsx)(n.a,{href:"pathname:///sitemap.xml",children:"sitemap.xml"})," file."]})}),"\n",(0,o.jsx)(n.admonition,{type:"note",children:(0,o.jsxs)(n.p,{children:["Robots directives are ",(0,o.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,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},80980:function(e,n,t){t.d(n,{Z:()=>r,a:()=>i});var a=t(67294);let o={},s=a.createContext(o);function i(e){let n=a.useContext(s);return a.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(o):e.components||o:i(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); |