Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Improve document title (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 authored and kyldvs committed Oct 23, 2017
1 parent 520a60c commit 0331a37
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions website/core/Site.js
Expand Up @@ -8,14 +8,18 @@ var HeaderLinks = require('HeaderLinks');

var Site = React.createClass({
render: function() {
var pageTitle = this.props.title
? `${this.props.title} | Flux`
: 'Flux | Application Architecture for Building User Interfaces'
;
return (
<html>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>Flux | Application Architecture for Building User Interfaces</title>
<title>{pageTitle}</title>
<meta name="viewport" content="width=device-width" />
<meta property="og:title" content="Flux | Application Architecture for Building User Interfaces" />
<meta property="og:title" content={pageTitle} />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://facebook.github.io/flux/index.html" />
<meta property="og:description" content="Application Architecture for Building User Interfaces" />
Expand Down
2 changes: 1 addition & 1 deletion website/layout/DocsLayout.js
Expand Up @@ -12,7 +12,7 @@ var DocsLayout = React.createClass({
var metadata = this.props.metadata;
var content = this.props.children;
return (
<Site section="docs">
<Site section="docs" title={metadata.title}>
<section className="content wrap documentationContent">
<DocsSidebar metadata={metadata} />
<div className="inner-content">
Expand Down

0 comments on commit 0331a37

Please sign in to comment.