/** * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 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; }); return ( {this.props.title} {this.props.config.ogImage && ( )} {this.props.config.algolia && ( )} {hasBlog && ( )}{" "} {hasBlog && ( )}