feat(v2): headerlinks (#1074)

* feat(v2): headerlinks

* fix test

* nits

* remove tictactoe:

* headerIcon

* nits

* remove lang dropdown

* fix failing test

* search box

* algolia search

* use babel-eslint to resolve dynamic import

* nits

* favicon and title

* Update .eslintignore
This commit is contained in:
Endilie Yacop Sucipto 2018-10-28 16:32:19 +08:00 committed by GitHub
parent d4458b394c
commit 85336649d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 1205 additions and 2292 deletions

View file

@ -21,12 +21,16 @@ export default class BlogPage extends React.Component {
blogMetadatas,
language,
children,
siteConfig,
siteConfig = {},
} = this.props;
const {posts} = metadata;
const {baseUrl, favicon} = siteConfig;
return (
<Layout {...this.props}>
<Helmet defaultTitle={siteConfig.title}>
<Helmet>
<title>{'Blog'}</title>
{favicon && <link rel="shortcut icon" href={baseUrl + favicon} />}
{language && <html lang={language} />}
{language && <meta name="docsearch:language" content={language} />}
</Helmet>