Skip to content

Add microformats 2 markup to blog posts #4

@barnabywalters

Description

@barnabywalters

Currently, blog posts are only marked up with classic hEntry classnames. Both out of principle, and to enable various features of microformats 2 (e.g. https://microformats.org/2022/02/19/how-to-consume-microformats-2-data getting a working u-repost-of link), IMO we should add mf2 h-entry to the theme.

It mostly looks very straightfoward, i.e. just adding classnames to template-parts/content.php and content-single.php. The only thing I’m not entirely familiar with is how post_class() works — presumably I add h-entry to the array which gets passed to it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions