Skip to content

feat(open_graph): support fediverse creator metadata - #5816

Open
stevenjoezhang wants to merge 1 commit into
masterfrom
agent/add-fediverse-creator
Open

feat(open_graph): support fediverse creator metadata#5816
stevenjoezhang wants to merge 1 commit into
masterfrom
agent/add-fediverse-creator

Conversation

@stevenjoezhang

@stevenjoezhang stevenjoezhang commented Aug 12, 2026

Copy link
Copy Markdown
Member

What does it do?

Adds a fediverse_creator option to the open_graph() helper and emits the author-attribution metadata used by Mastodon and other Fediverse software:

<meta name="fediverse:creator" content="@username@domain.name">

The option accepts either a single creator or an array of creators. Array values generate repeated tags in the configured order, allowing the first creator to remain the preferred attribution while preserving future support for multiple creators.

This makes the metadata available to themes that delegate social metadata generation to Hexo's helper.

Closes #5804.

Validation

  • npm test -- --grep '^open_graph' (63 passing)
  • npm run eslint
  • npm run build

Screenshots

N/A — this change only affects generated metadata.

Pull request tasks

  • Add test cases for the changes.
  • Passed the CI test.

@github-actions

Copy link
Copy Markdown

How to test

git clone -b agent/add-fediverse-creator https://github.com/hexojs/hexo.git
cd hexo
npm install
npm test

@stevenjoezhang
stevenjoezhang marked this pull request as ready for review August 12, 2026 07:41
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.

Please add support for "fediverse:creator" OpenGraph tag for Mastodon etc.

2 participants