/** * Copyright (c) 2017-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const React = require("react"); // html head for each page class Head extends React.Component { render() { let links = this.props.config.headerLinks; let hasBlog = false; links.map(link => { if (link.blog) hasBlog = true; }); let sourceCodeButton = this.props.config.sourceCodeButton; // defaults to github, but other values may be allowed in the future let includeGithubButton = sourceCodeButton === "github" || sourceCodeButton == null; return (