authorship: Difference between revisions

From IndieWeb
(expand how to section to make it less terse)
(expand permalink section, bring use cases to the front of the description)
Line 13: Line 13:
=== Authorship for individual posts ===
=== Authorship for individual posts ===


For individual '''[[posts]]''', (such as a post displayed on its [[permalink]]), you have a few options for how to provide authorship information:
For individual '''[[posts]]''', (such as a post displayed on its [[permalink]]), you have a few options for how to provide authorship information.


* [[h-entry]] markup on your posts including an explicit <code>p-author</code> or <code>u-author</code> (preferably enhanced with an embedded [[h-card]], e.g. <code>&lt;a class="u-author h-card" href="/">…&lt;/a></code> if your posts have your name, photo etc. already visible)
==== Full author information in each post ====
* OR if you have an h-card on your website (e.g. from a global template for your header or footer) that links to your homepage, then add a minimal <code>&lt;a class="u-author" href="/">&lt;/a></code> inside your post h-entry.
If your posts have your name and photo already visible, then your [[h-entry]] for the post can include a full [[h-card]] with the complete author info for the post, by adding an explicit <code>p-author</code> or <code>u-author</code> property with an embedded [[h-card]], e.g. <code>&lt;a class="u-author h-card" href="/">…&lt;/a></code>
Β 
==== Author information in a header or footer ====
If you have an [[h-card]] on your website in a header or footer, you can avoid duplicating the author information inside the [[h-entry]] by establishing a link between the two: add a <code>&lt;a class="u-author" href="/">&lt;/a></code> inside your post h-entry (an invisible link to your home page), and ensure the [[h-card]] in your header or footer has a <code>url</code> property that also links to your home page.


=== Authorship for streams of posts ===
=== Authorship for streams of posts ===

Revision as of 16:04, 15 February 2020

authorship is how to indicate who the author is for a post, and an algorithm that determines the author of a post.

Why

You should clearly indicate who is the author of a post so when other sites summarize or reply to your post, they can properly recognize the author(s)!

How to publish

Publishing your authorship of a post is designed to be both easy and flexible to adapt to a variety of publishing methods and designs. Any of the following are fine.

Choose whichever is the least work for you, your site, your theme(s), your code, and easiest for you to maintain!

Authorship for individual posts

For individual posts, (such as a post displayed on its permalink), you have a few options for how to provide authorship information.

Full author information in each post

If your posts have your name and photo already visible, then your h-entry for the post can include a full h-card with the complete author info for the post, by adding an explicit p-author or u-author property with an embedded h-card, e.g. <a class="u-author h-card" href="/">…</a>

Author information in a header or footer

If you have an h-card on your website in a header or footer, you can avoid duplicating the author information inside the h-entry by establishing a link between the two: add a <a class="u-author" href="/"></a> inside your post h-entry (an invisible link to your home page), and ensure the h-card in your header or footer has a url property that also links to your home page.

Authorship for streams of posts

For a page with a stream of posts (like on an archive, homepage, etc.), you may want to avoid duplicating authorship information on each individual post:

  • h-feed markup including an explicit p-author or u-author ((preferably enhanced with an embedded h-card as described above)
  • OR if you have an h-card on your website (e.g. from a global template for your header or footer) that links to your homepage, then add a minimal <a class="u-author" href="/"></a> inside your h-feed.

separate author description pages (e.g. when using u-author)

  • h-card with information about you on your author description page (e.g. homepage)

Validate

Try this authorship testing tool to validate your authorship markup - it will tell you how the authorship algorithm finds your author information on a permalink:

You can use the preview feature of Monocle to see if a feed or post will look good in a reader:

How to determine

See authorship-spec.

See Also