theNewDynamic / gohugo-theme-ananke

Ananke: A theme for Hugo Sites
https://gohugo-ananke-theme-demo.netlify.com/
MIT License
1.1k stars 1.13k forks source link

Add rel=me attribute to social links: fixes mastodon account metadata verification #567

Closed Altonss closed 1 year ago

Altonss commented 1 year ago

Adds rel=me attribute to social links This fixes #417 about mastodon account metadata verification

netlify[bot] commented 1 year ago

Deploy Preview for gohugo-ananke-theme-demo canceled.

Name Link
Latest commit 7d737348c6ee118f56f4065ea1bbc56e18f3313b
Latest deploy log https://app.netlify.com/sites/gohugo-ananke-theme-demo/deploys/62feb702a048650007ee4eb3
regisphilibert commented 1 year ago

Thanks for this @Altonss, TILT for me. Now I'm not sure this is the right use case for a company using the theme though, as the rel=me attribute has been implemented for persons. I'm confident Ananke is uses for persons mostly, but there has to be some companies using it...

What do you think?

Altonss commented 1 year ago

What do you think?

I'm not an expert at all, but reading the conclusion of the blogpost you just linked: It’s worth noting that this is a work around, and the real [purpose of the 'rel=me'](http://microformats.org/wiki/rel-me) relationship attribute is to join up a person’s identity and not a ‘thing’s’ identity (in this case a company / brand). It will be interesting to see if in future, a new brand identity attribute is launched for this exact use, in response to the large adoption of company social media profiles over the last few years. I think this is a legit workaround. But the article seems to be from 2013 so maybe we could look for more up to date infos ^^

regisphilibert commented 1 year ago

Okay so I did found more recent documentation. Curiously enough this other one from mozilla is saying the me value is reserved for link tags (not a tags)... So a bit of contradiction from mozilla...

In any case, I've discussed this lenghily with @budparr and here is our conclusion:

Even though Google tried to popularise the use of rel=me for SEO purposes or simply identifying your social circle, it clearly did not take off, considering the age of the related posts we were able to find on the matter and a more human factor: We would know it by now, if this was important for SEO...

Now it seems to be used for validating a website's ownership (RelMeAuth). But for that relevant use case I don't think the theme should enable rel=me by default. I would advise any user in need of this to overwrite the baseof.html and insert a <link rel="me" src="mastondon...">. I think it's worth the extra step.