Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

representative h-card: add url uid source algorithm #75

Closed
gRegorLove opened this Issue Oct 18, 2018 · 2 comments

Comments

2 participants
@gRegorLove
Copy link
Member

gRegorLove commented Oct 18, 2018

Edit: I missed that there's an h-card version of that page. Refer to http://microformats.org/wiki/representative-h-card-parsing instead.

For the two methods described on http://microformats.org/wiki/representative-hcard-parsing, indiewebify.me is only doing #2. Add support for #1.

  1. url uid source. The first hCard found which has a "url" property whose value is the url of the page (source) and is also a "uid" property for the hCard, is the representative hCard for the page.
  2. url and rel me. If the previous step didn't find a representative hCard, then the first hCard with a "url" property that also has the rel="me" relation is the representative hCard for the page.

For reference, dougbeal.com currently has a valid represenative h-card as the author of the h-feed using this method. Parse results (minified):

"properties": {
  "author": [
    {
      "value": "Douglas Beal",
      "type": [
        "h-card"
      ],
      "properties": {
        "name": [
          "Douglas Beal"
        ],
        "uid": [
          "https://dougbeal.com/"
        ],
        "url": [
          "https://dougbeal.com/"
        ]
      }
    }
  ],
}
@dougbeal

This comment has been minimized.

Copy link
Contributor

dougbeal commented Oct 20, 2018

Should the link in validate-h-card.html.php be to http://microformats.org/wiki/representative-h-card-parsing ?

(Originally published at: https://crw.moe/t/1b2)

@dougbeal

This comment has been minimized.

Copy link
Contributor

dougbeal commented Oct 20, 2018

Fix wiki link #76

(Originally published at: https://crw.moe/t/1b6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.