mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +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 = {
|
module.exports = {
|
||||||
title: 'Docusaurus',
|
title: 'Docusaurus',
|
||||||
tagline:
|
tagline: 'Build optimized websites quickly, focus on your content',
|
||||||
'An optimized site generator in React. Docusaurus helps you to move fast and write content. Build documentation websites, blogs, marketing pages, and more.',
|
|
||||||
organizationName: 'facebook',
|
organizationName: 'facebook',
|
||||||
projectName: 'docusaurus',
|
projectName: 'docusaurus',
|
||||||
baseUrl: '/',
|
baseUrl: '/',
|
||||||
url: 'https://v2.docusaurus.io',
|
url: 'https://v2.docusaurus.io',
|
||||||
favicon: 'img/docusaurus.ico',
|
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'],
|
themes: ['@docusaurus/theme-live-codeblock'],
|
||||||
plugins: [
|
plugins: [
|
||||||
[
|
[
|
||||||
|
|
|
@ -61,10 +61,10 @@ const QUOTES = [
|
||||||
|
|
||||||
function Home() {
|
function Home() {
|
||||||
const context = useDocusaurusContext();
|
const context = useDocusaurusContext();
|
||||||
const {siteConfig = {}} = context;
|
const {siteConfig: {customFields = {}} = {}} = context;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout permalink="/" description={siteConfig.tagline}>
|
<Layout permalink="/" description={customFields.description}>
|
||||||
<div className={styles.hero}>
|
<div className={styles.hero}>
|
||||||
<div className={styles.heroInner}>
|
<div className={styles.heroInner}>
|
||||||
<h1 className={styles.heroProjectTagline}>
|
<h1 className={styles.heroProjectTagline}>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue