Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve SEO #387

Closed
azz opened this issue Jan 10, 2018 · 4 comments
Closed

Improve SEO #387

azz opened this issue Jan 10, 2018 · 4 comments
Labels
difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: claimed Issue has been claimed by a contributor who plans to work on it.

Comments

@azz
Copy link

azz commented Jan 10, 2018

Is this a bug report?

enhancement.

Have you read the Contributing Guidelines?

👍

Issue

Google search results for Prettier could do with some improvement.

Short listing

image

Long listing (Requires searching for "prettier.io")

image

I'm not an expert on SEO, but I think there should be an option to set:

Reproducible Demo

Search: https://google.com/search?q=prettier.io
Repo: https://github.com/prettier/prettier
Site: https://prettier.io

@j-f1
Copy link

j-f1 commented Jan 10, 2018

let num = Math.floor (Math.random() * 1E+7).toString().replace ...

That’s definitely not what we’re looking for to describe the playground.

@JoelMarcey JoelMarcey added the feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. label Feb 27, 2018
@JoelMarcey
Copy link
Contributor

JoelMarcey commented Feb 27, 2018

Ok, I am convinced that we need to do a bit better given the random code snippet for the playground 😄

@yangshun yangshun added the difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. label Apr 21, 2018
@amyrlam
Copy link
Contributor

amyrlam commented May 23, 2018

I'll work on this with @jason-maier. He's new to Docusaurus, but has some SEO experience from his past career!

@JoelMarcey JoelMarcey added the status: claimed Issue has been claimed by a contributor who plans to work on it. label May 25, 2018
@endiliey
Copy link
Contributor

I think this has been fixed 😄

You can set your own description meta
<meta name="description" content="...">

Refer to https://docusaurus.io/docs/en/api-pages#description-for-pages

Example:

// pages/index.js

const React = require('react');

class Index extends React.Component {
  render() {
    // ... your rendering code
  }
}

Index.description = 'Endilie is an undergraduate student at Nanyang Technological University (2019). He likes to write & code in his free time';
module.exports = Index;

Google's result:

google-test

I'm closing this. Feel free to re-open / create a new issue if needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: starter Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan. feature This is not a bug or issue with Docusausus, per se. It is a feature request for the future. status: claimed Issue has been claimed by a contributor who plans to work on it.
Projects
None yet
Development

No branches or pull requests

6 participants