mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 00:17:14 +02:00
1 line
No EOL
2.6 KiB
JavaScript
1 line
No EOL
2.6 KiB
JavaScript
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[91257],{89682:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>l,frontMatter:()=>s,metadata:()=>r,toc:()=>c});var o=t(24246),a=t(71670);const s={},i="No Index Page example",r={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:"Ashiq Firoz",lastUpdatedAt:1723124811e3,editUrl:"https://github.com/facebook/docusaurus/edit/main/website/src/pages/examples/noIndex.mdx",unlisted:!1},d={},c=[];function p(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",header:"header",p:"p",pre:"pre",...(0,a.a)(),...e.components},{Head:t}=n;return t||function(e,n){throw new 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 l(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(p,{...e})}):p(e)}},71670:(e,n,t)=>{t.d(n,{Z:()=>r,a:()=>i});var o=t(27378);const a={},s=o.createContext(a);function i(e){const 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)}}}]); |