HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.63k stars 74 forks source link

h-entry support #300

Open nex3 opened 5 days ago

nex3 commented 5 days ago

It would be very cool to support the h-entry microformat out of the box, which annotates posts with a few simple classes to make them easier to quote, reference, reblog, and so on. If this is something that you'd be interested in, I'd be happy to take a crack at it.

HermanMartinus commented 22 hours ago

It looks like an interesting format. I'll take a look at it and give it some consideration. From what I can tell it just uses classnames on elements to create a machine-readable format (similar to RSS or Atom but integrated into the content rather than in a separate feed).

I'm generally conservative about adding new formats and features since my goal with Bear is longevity and stability over feature-full-ness. What are the use-cases for h-entry for you?

rkingett commented 19 hours ago

It would allow us to participate in more IndieWeb directories since they use these kinds of properties to tell what is an article and what is an H Card and more.

nex3 commented 8 hours ago

On my blog, I parse h-entry metadata to easily quote and reblog posts from other blogs, but there are all sorts of uses. For example, if someone is using WebMentions (for example by hooking up their RSS feed to https://webmention.io/), h-entry metadata makes it possible for mentioned sites to include extra metadata about the mention like the author's name or a snippet of the post.