Skip to content

Commit f035ea1

Browse files
montogeekskipjack
authored andcommitted
fix(site) Add exception to homepage title
1 parent 73607f5 commit f035ea1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/server.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const paths = Content.children.reduce((paths, page) => {
3535
// description, etc).
3636
export default locals => {
3737
let { assets } = locals.webpackStats.compilation;
38-
let title = paths[locals.path];
38+
let title = paths[locals.path] === 'webpack' ? paths[locals.path] : `${paths[locals.path]} | webpack`;
3939

4040
return ReactDOMServer.renderToString(
4141
<StaticRouter location={locals.path} context={{}}>
@@ -44,7 +44,7 @@ export default locals => {
4444
<meta charset="utf-8" />
4545
<meta name="theme-color" content="#2B3A42" />
4646
<meta name="viewport" content="width=device-width, initial-scale=1" />
47-
<title>{title} | webpack</title>
47+
<title>{title}</title>
4848
<meta name="description" content="webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset." />
4949
<link rel="icon" type="image/x-icon" href={ Favicon } />
5050
{ Object.keys(assets).filter(asset => /\.css$/.test(asset)).map(path => (

0 commit comments

Comments
 (0)