Skip to content

Commit

Permalink
fix(v2): make friendlier title on home page for SEO (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
lex111 authored and yangshun committed Nov 25, 2019
1 parent 10cd99b commit 085f522
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
[
Expand Down
4 changes: 2 additions & 2 deletions website/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}>
Expand Down

0 comments on commit 085f522

Please sign in to comment.