/** * 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"); const HeaderNav = require("./nav/HeaderNav.js"); const Head = require("./Head.js"); const Footer = require(process.cwd() + "/core/Footer.js"); class Site extends React.Component { /* goes in body after navPusher
*/ render() { const tagline = this.props.config[this.props.language] ? this.props.config[this.props.language]["localized-strings"].tagline : this.props.config.tagline; const title = this.props.title ? this.props.title + " · " + this.props.config.title : this.props.config.title + " · " + tagline; const description = this.props.description || tagline; const url = this.props.config.url + this.props.config.baseUrl + (this.props.url || "index.html"); return (