feat(v2): add more essential meta tags (#1651)

* feat(v2): add more essential meta tags

* nits tagline
This commit is contained in:
Endi 2019-07-13 01:23:00 +08:00 committed by GitHub
parent ee2050d612
commit ca67cad2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View file

@ -37,6 +37,9 @@ function Layout(props) {
return ( return (
<React.Fragment> <React.Fragment>
<Head> <Head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta name="viewport" content="width=device-width" />
{metaTitle && <title>{metaTitle}</title>} {metaTitle && <title>{metaTitle}</title>}
{metaTitle && <meta property="og:title" content={metaTitle} />} {metaTitle && <meta property="og:title" content={metaTitle} />}
{favicon && <link rel="shortcut icon" href={withBaseUrl(favicon)} />} {favicon && <link rel="shortcut icon" href={withBaseUrl(favicon)} />}

View file

@ -7,7 +7,7 @@
module.exports = { module.exports = {
title: 'Docusaurus', title: 'Docusaurus',
tagline: '⚡️ Painless static site generator', tagline: '⚡️ Easy to Maintain React Static Site Generator',
organizationName: 'facebook', organizationName: 'facebook',
projectName: 'docusaurus', projectName: 'docusaurus',
baseUrl: '/', baseUrl: '/',

View file

@ -67,7 +67,9 @@ function Home() {
return ( return (
<Layout <Layout
permalink={'/'} permalink={'/'}
description={'Docusaurus makes it easy to build websites'}> description={
'Docusaurus makes it easy and painless for you to build websites'
}>
<div className={styles['index-hero']}> <div className={styles['index-hero']}>
<div className={styles['index-hero-inner']}> <div className={styles['index-hero-inner']}>
<h1 className={styles['index-hero-project-tagline']}> <h1 className={styles['index-hero-project-tagline']}>