diff --git a/lib/core/Doc.js b/lib/core/Doc.js index af94208ffc..5c76503296 100644 --- a/lib/core/Doc.js +++ b/lib/core/Doc.js @@ -13,7 +13,7 @@ const Marked = require("./Marked.js"); class Doc extends React.Component { render() { let editLink = - this.props.config.editUrl && + !this.props.version && this.props.config.editUrl && ; if (this.props.language != "en") { editLink = - this.props.config.recruitingLink && + !this.props.version && this.props.config.recruitingLink &&
diff --git a/lib/core/Site.js b/lib/core/Site.js index 8c6c70011c..7013d62da3 100644 --- a/lib/core/Site.js +++ b/lib/core/Site.js @@ -8,40 +8,25 @@ */ const React = require("react"); +const fs = require("fs"); const HeaderNav = require("./nav/HeaderNav.js"); const Head = require("./Head.js"); const Footer = require(process.cwd() + "/core/Footer.js"); const translation = require("../server/translation.js"); +const CWD = process.cwd(); + class Site extends React.Component { /* goes in body after navPusher -
-