Skip to content

Open Graph tags missing required property of og:type #5373

Description

@johnnyreilly

🐛 Bug Report

Prerequisites

  • I'm using the latest version of Docusaurus.
  • I have tried the npm run clear or yarn clear command.
  • I have tried rm -rf node_modules yarn.lock package-lock.json and re-installing packages.
  • I have tried creating a repro with https://new.docusaurus.io
  • I have read the console error message carefully (if applicable)

Description

Open Graph tags are amazing and I've been reading up on them. There's four that are required:

og:title - The title of your object as it should appear within the graph, e.g., "The Rock".
og:type - The type of your object, e.g., "video.movie". Depending on the type you specify, other properties may also be required.
og:image - An image URL which should represent your object within the graph.
og:url - The canonical URL of your object that will be used as its permanent ID in the graph, e.g., "https://www.imdb.com/title/tt0117500/".

Docusaurus does not provide og:type at present. It would be good if it did; perhaps with a value of website or article. eg:

<meta property="og:type" content="article" />

Have you read the Contributing Guidelines on issues?

Yes

Steps to reproduce

Look at the og tags on the docusaurus website: https://docusaurus.io/blog

Expected behavior

To have an og:type tag

Actual behavior

Does not have og:type tag

Your environment

All environments

Reproducible demo

Look at the og tags on the docusaurus website: https://docusaurus.io/blog

Given the work in #5355 @lex111 - I wondered if you might have thoughts on this too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error in the Docusaurus core causing instability or issues with its execution

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions