mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 21:03:47 +02:00
feat(v2): add more essential meta tags (#1651)
* feat(v2): add more essential meta tags * nits tagline
This commit is contained in:
parent
ee2050d612
commit
ca67cad2a7
3 changed files with 7 additions and 2 deletions
|
@ -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)} />}
|
||||||
|
|
|
@ -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: '/',
|
||||||
|
|
|
@ -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']}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue