indiewebify-me icon indicating copy to clipboard operation
indiewebify-me copied to clipboard

Author linking fails between h-entry/u-author and external h-card/u-url

Open kaushalmodi opened this issue 7 years ago • 3 comments

Hello,

Here is an example page: https://scripter.co/hugo-leaf-and-branch-bundles/

Inside h-entry

<a href="https://scripter.co/" class="u-author">Kaushal Modi</a>

Inside h-card

<div class="h-card">
    <a class="p-name u-url" href="https://scripter.co/">Kaushal Modi</a>
    <!-- snip -->
</div>

The author linking is working as per:

  • https://xray.p3k.io/parse?pretty=true&url=https%3A%2F%2Fscripter.co%2Fhugo-leaf-and-branch-bundles%2F
  • https://sturdy-backbone.glitch.me/test?url=https%3A%2F%2Fscripter.co%2Fhugo-leaf-and-branch-bundles%2F

But https://indiewebify.me/validate-h-entry/?url=https%3A%2F%2Fscripter.co%2Fhugo-leaf-and-branch-bundles%2F gives:

You’re marking up your post’s author as a string — add h-card to make it a full h-card!

image

Can this please be fixed?

\cc @aaronpk

kaushalmodi avatar Mar 26 '18 18:03 kaushalmodi

This is pretty much part of #6, and something that has come up a fair bit recently in this specific form.

Do we have a readymade authorship algorithm implementation in PHP? I guess XRay contains one, not sure if it can easily be used standalone?

sknebel avatar Jul 05 '18 04:07 sknebel

XRay does implement I believe the full authorship algorithm. We could pull XRay in to this project. The only trick is that it won't show detailed debugging information about why it found the author or not, it just returns the author info when it finds it.

aaronpk avatar Jul 05 '18 15:07 aaronpk

I think this can be closed in favor of #6

aciccarello avatar Nov 29 '23 20:11 aciccarello