πŸ““ how-to-be-repostable.myco by @betula-site β˜†

How to be repostable?

This is an internal draft
Say, you are developing a bookmarking website which you want to be repostable by Betula. What does it mean? It means that you mark up your bookmarks (or whatever terminology is used in your project) in such a way that Betula can understand.

Static site generators are fine. All you need is to change HTML appropriately.

First level of repostability

The very basic.

  1. Each post has to have its own page.

    Betula does not repost collections of posts, just specific posts. This criterion is probably true for most websites, however, there are some bookmarking sites that do not follow it, such as Linkhut. Don't be like Linkhut and provide post pages.

  2. Mark up the bookmark link.

    What is the URL of a page you bookmarked? Let us know. The <a> element must have class u-bookmark-of and the <a>'s href must be a valid URL. For example,

    html
    <a class="u-bookmark-of" href="https://bouncepaw.com">(original post)</a>

  3. Mark up the post name.

    There must be an element with class p-name. The first text in it is the page name. For example,

    html
    <h2 class="p-name"><a href="/bookmark-no-234">Organically inexpressive</a></h2>

  4. The post msut not be in an h-feed. If you don't know what is it, then it probably isn't.

  5. You can have some tags, if you want.

Second level of repostability

Descriptions. TODO.

Third level of repostability

Notifications. TODO.