mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-27 23:17:56 +02:00
Allow exclusion of tagline in page title
This commit is contained in:
parent
1edd160ceb
commit
fc4e5b05df
2 changed files with 4 additions and 2 deletions
|
@ -54,7 +54,9 @@ class Site extends React.Component {
|
||||||
: this.props.config.tagline;
|
: this.props.config.tagline;
|
||||||
const title = this.props.title
|
const title = this.props.title
|
||||||
? this.props.title + " · " + this.props.config.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 description = this.props.description || tagline;
|
||||||
const url =
|
const url =
|
||||||
this.props.config.url +
|
this.props.config.url +
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"shelljs": "^0.7.8"
|
"shelljs": "^0.7.8"
|
||||||
},
|
},
|
||||||
"name": "docusaurus",
|
"name": "docusaurus",
|
||||||
"version": "1.0.0-alpha.24",
|
"version": "1.0.0-alpha.25",
|
||||||
"bin": {
|
"bin": {
|
||||||
"docusaurus-start": "./lib/start-server.js",
|
"docusaurus-start": "./lib/start-server.js",
|
||||||
"docusaurus-build": "./lib/build-files.js",
|
"docusaurus-build": "./lib/build-files.js",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue