Skip to content

Add h-card to support the IndieWeb movement #1771

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

Merged
merged 3 commits into from
Jun 5, 2025
Merged

Add h-card to support the IndieWeb movement #1771

merged 3 commits into from
Jun 5, 2025

Conversation

pfefferle
Copy link
Member

@pfefferle pfefferle commented Jun 5, 2025

Adds the h-card (microformats) markup to the "follow me" widget. With the actual card feature it might replace the posts author markup and therefore it might be nice to support other movements aside from the fediverse.

The h-card is mainly used by Webmentions (and a lot of other IndieWeb specs), to detect the author of a blog post.

The change are only made to the user facing site, because they do not interfere with the design and do not bring any need in the editor mode.

Some further informations:

Proposed changes:

  • Add semantic HTML markup to the "Follow-Me" block

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Add a follow me card to a page
  • Copy & Paste the HTML to the linked parser
  • Check the result

Changelog entry

  • Automatically create a changelog entry from the details below.
Changelog Entry Details

Significance

  • Patch
  • Minor
  • Major

Type

  • Added - for new features
  • Changed - for changes in existing functionality
  • Deprecated - for soon-to-be removed features
  • Removed - for now removed features
  • Fixed - for any bug fixes
  • Security - in case of vulnerabilities

Message

Enhanced markup of the "follow me" block, for a better Webmention and IndieWeb support.

@pfefferle pfefferle requested review from obenland and Copilot June 5, 2025 18:24
@pfefferle pfefferle self-assigned this Jun 5, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces support for the IndieWeb movement by adding semantic h‑card microformats to the “Follow Me” widget. The key changes include:

  • Adding h‑card related classes (p-author, h-card, u-photo, p-name, p-nickname p‑x‑webfinger, p‑note) in the follow-me markup.
  • Updating both source and build versions of the follow‑me template to include these changes.
  • Bumping the asset version to ensure cached files update accordingly.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
src/follow-me/render.php Added h‑card microformats classes for IndieWeb support.
build/reply/index.js Bundled changes; no direct changes to h‑card functionality.
build/reply/index.asset.php Updated asset version reflecting build updates.
build/follow-me/render.php Mirrored microformats changes from the source file.
Comments suppressed due to low confidence (1)

src/follow-me/render.php:110

  • Consider adding tests to verify that the new h-card microformats markup is correctly rendered and remains consistent during future changes.
<div class="activitypub-profile p-author h-card">

@github-actions github-actions bot added [Block] Follow Me [Focus] Editor Changes to the ActivityPub experience in the block editor labels Jun 5, 2025
@pfefferle pfefferle merged commit fcb896c into trunk Jun 5, 2025
12 of 13 checks passed
@pfefferle pfefferle deleted the add/h-card branch June 5, 2025 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Follow Me [Focus] Editor Changes to the ActivityPub experience in the block editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants