Skip to content

Allow author email to be rendered as a social #11394

@jaime-rivas

Description

@jaime-rivas

Have you read the Contributing Guidelines on issues?

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

In blog posts, the author byline renders social icons (X/Twitter, LinkedIn, website), but there is no email icon and adding an email field in author metadata is silently ignored. This looks like a parity bug with other contact methods, or at least an undocumented limitation.

Image

Reproducible demo

No response

Steps to reproduce

  1. Define an author via authors.yml or frontmatter with typical social fields plus an email, for example:

    jdoe:
      name: John Doe
      email: [email protected]
      socials:
                x: johndoe
                linkedin: johndoe
                url: https://example.com
                [Even if I write email here it does not show up]
  2. Build and view a blog post attributed to this author.

  3. Observe that X/LinkedIn/website render as icons, but there is no email icon or mailto link, and no build-time warning that email is unsupported.

Expected behavior

An email icon appears in the byline linking to mailto:<address>

Actual behavior

Email is not rendered; the field is ignored without any warning. Other social links render normally.

Your environment

Self-service

  • I'd be willing to fix this bug myself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain: content pluginRelated to content plugin emitting metadata for theme consumptionfeatureThis is not a bug or issue with Docusausus, per se. It is a feature request for the future.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions