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

feat(gatsby-theme-docz): configure SEO information from md/mdx files #1477

Merged
merged 1 commit into from
May 5, 2020

Conversation

shkoliar
Copy link
Contributor

Description

Change adds the possibility to set SEO meta information directly from *.md or *.mdx files without shadowing components.

For example:

---
title: Page1 Title
description: Description text
keywords: [keyword1, keyword1]
meta: []

name: Page1
route: /page1
---

Configuring SEO information is on a per-page basis.

The page title can be customized and not depend on the page name.

If this extra information is not provided in *.md or *.mdx file, the page name is used as a fallback.

@jesperorb
Copy link

Seems reasonable, any reason why we would want to filter the frontmatter before passing to SEO/Helmet @rakannimer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants