From fc4e5b05df54040b64561389569265ffd09765e3 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Fri, 21 Jul 2017 12:24:43 -0700 Subject: [PATCH] Allow exclusion of tagline in page title --- lib/core/Site.js | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/Site.js b/lib/core/Site.js index 6e415e838d..8c6c70011c 100644 --- a/lib/core/Site.js +++ b/lib/core/Site.js @@ -54,7 +54,9 @@ class Site extends React.Component { : this.props.config.tagline; const title = this.props.title ? this.props.title + " · " + this.props.config.title - : this.props.config.title + " · " + tagline; + : (!this.props.config.disableTitleTagline && + this.props.config.title + " · " + tagline) || + this.props.config.title; const description = this.props.description || tagline; const url = this.props.config.url + diff --git a/package.json b/package.json index 09efec7a19..44e6b248bc 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "shelljs": "^0.7.8" }, "name": "docusaurus", - "version": "1.0.0-alpha.24", + "version": "1.0.0-alpha.25", "bin": { "docusaurus-start": "./lib/start-server.js", "docusaurus-build": "./lib/build-files.js",