mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 08:49:51 +02:00
fix(v2): make friendlier title on home page for SEO (#2049)
This commit is contained in:
parent
10cd99b3e4
commit
085f522817
2 changed files with 7 additions and 4 deletions
|
@ -9,13 +9,16 @@ const versions = require('./versions.json');
|
|||
|
||||
module.exports = {
|
||||
title: 'Docusaurus',
|
||||
tagline:
|
||||
'An optimized site generator in React. Docusaurus helps you to move fast and write content. Build documentation websites, blogs, marketing pages, and more.',
|
||||
tagline: 'Build optimized websites quickly, focus on your content',
|
||||
organizationName: 'facebook',
|
||||
projectName: 'docusaurus',
|
||||
baseUrl: '/',
|
||||
url: 'https://v2.docusaurus.io',
|
||||
favicon: 'img/docusaurus.ico',
|
||||
customFields: {
|
||||
description:
|
||||
'An optimized site generator in React. Docusaurus helps you to move fast and write content. Build documentation websites, blogs, marketing pages, and more.',
|
||||
},
|
||||
themes: ['@docusaurus/theme-live-codeblock'],
|
||||
plugins: [
|
||||
[
|
||||
|
|
|
@ -61,10 +61,10 @@ const QUOTES = [
|
|||
|
||||
function Home() {
|
||||
const context = useDocusaurusContext();
|
||||
const {siteConfig = {}} = context;
|
||||
const {siteConfig: {customFields = {}} = {}} = context;
|
||||
|
||||
return (
|
||||
<Layout permalink="/" description={siteConfig.tagline}>
|
||||
<Layout permalink="/" description={customFields.description}>
|
||||
<div className={styles.hero}>
|
||||
<div className={styles.heroInner}>
|
||||
<h1 className={styles.heroProjectTagline}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue