h-cite
Jump to navigation
Jump to search
This article is a stub. You can help the IndieWeb wiki by expanding it.
h-cite is the microformats2 vocabulary for marking up citations and references on web sites.
IndieWeb Uses
There are several IndieWeb uses of h-cite:
- photo - information on an embedded photo. For example, if it has a different author than the post.
- reply-context - summary display of the original post that a reply/comment is in-reply-to.
- comments - comments shown below a post that have been federated/syndicated in from their original reply permalink.
- like - context about the thing you liked, similar to a reply-context.
- repost - context about the thing you reposted, like what resonated with you and you wished to draw the reader's attention to through the repost.
- appearances — markup books, papers, films that listed in your appearances
Notes on markup and usability
- blockquote and cite tags - when quoting other blog posts, it's good to provide a fully marked up citation using h-cite and the blockquote and cite HTML tags.
- Citation user interface - it is suggested to provide an explicit <cite class="h-cite"> markup in an input text box at the bottom of blog posts. This allows others to easily copy and paste your content into their follow-up blog posts or responses.
FAQ
Q: When making a mentions stream, should I use h-cite around each entry?
A: If you are displaying the entire entry, then it does not need an h-cite. If you are citing a summary of the entry — e.g. name, URL, and dt-published — then an h-cite is appropriate.
IndieWeb Examples
Christian Weiske
Christian Weiske uses h-cite to mark up books he has in his library - http://cweiske.de/books.htm
gRegor Morrill
gRegor Morrill: I've published h-cite on:
- read posts at https://gregorlove.com/channels/reading
- reply-contexts in reply posts, for example: https://gregorlove.com/2020/06/this-is-fantastic/
- incoming responses feed at https://gregorlove.com/responses/