rel-embed

From IndieWeb


rel-embed is draft spec for the rel value of embed for a page to link to a version of itself that is suitable for embedding in other pages, such as a small contact card for an about page, or plain post content with author and date for post permalink.

Status
This is a draft Living Specification that has implementations.
Latest Published Version
https://indieweb.org/rel-embed
Participate
discussion on #indieweb-dev (on Libera IRC)
Editors
Tantek Γ‡elik
Authors
Other contributors: revision history
License
Per CC0, to the extent possible under law, the editor(s) and contributors have waived all copyright and related or neighboring rights to this work. In addition, as of 2024-10-30, the editor(s) and contributors (2015-04-07 onward) have made this specification available under the Open Web Foundation Agreement Version 1.0.

Why

See embed#Why.

How to

How to link to an embed version of a page

In the the head of a post permalink page or home page, create a link with rel=embed, e.g. using markup like this, to the embed version of the page:

<link rel="embed" href="{permalink}/embed" />

where {permalink} is the original post permalink URL (or home page).

The "{permalink}/embed" is only a convention, and any URL on the same site may be used.

How to discover rel embed

Consuming code must look for a link element (<a> or <link>) with rel attribute with an embed value and use that to auto-discover the embedding URL at the href of that link element to present as a UI to publishers etc.

See Also

  • embed page for more examples and brainstorming