docusaurus/assets/js/6e8cf259.3d85d6eb.js
2025-04-04 11:26:00 +00:00

1 line
No EOL
2.2 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([["42384"],{42362:function(e,t,a){a.r(t),a.d(t,{frontMatter:()=>r,default:()=>m,contentTitle:()=>d,assets:()=>i,toc:()=>c,metadata:()=>n});var n=JSON.parse('{"type":"mdx","permalink":"/tests/pages/head-metadata","source":"@site/_dogfooding/_pages tests/head-metadata.mdx","description":"Head Metadata tests","frontMatter":{},"lastUpdatedBy":"S\xe9bastien Lorber","lastUpdatedAt":1743765771000,"editUrl":"https://github.com/facebook/docusaurus/edit/main/website/_dogfooding/_pages tests/head-metadata.mdx","unlisted":false}'),o=a(85893),s=a(80980);let r={},d=void 0,i={},c=[{value:"Head Metadata tests",id:"head-metadata-tests",level:2}];function l(e){let t={code:"code",h2:"h2",p:"p",pre:"pre",...(0,s.a)(),...e.components},{Head:a}=t;return a||function(e,t){throw Error("Expected "+(t?"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)(t.h2,{id:"head-metadata-tests",children:"Head Metadata tests"}),"\n",(0,o.jsx)(t.p,{children:"This page declares the following custom head metadata:"}),"\n",(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-html",children:'<head>\n <meta name="generator" value="custom generator name!" />\n <meta name="viewport" content="initial-scale=1, viewport-fit=cover" />\n <meta name="robots" content="noindex, nofollow, my-extra-directive" />\n</head>\n'})}),"\n",(0,o.jsxs)(a,{children:[(0,o.jsx)("meta",{name:"generator",value:"custom generator name!"}),(0,o.jsx)("meta",{name:"viewport",content:"initial-scale=1, viewport-fit=cover"}),(0,o.jsx)("meta",{name:"robots",content:"noindex, nofollow, my-extra-directive"})]})]})}function m(e={}){let{wrapper:t}={...(0,s.a)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},80980:function(e,t,a){a.d(t,{Z:()=>d,a:()=>r});var n=a(67294);let o={},s=n.createContext(o);function r(e){let t=n.useContext(s);return n.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function d(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]);