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

(?): Add Microformats2 markup to blog feeds #44

Closed
dissolve opened this issue May 26, 2017 · 6 comments
Closed

(?): Add Microformats2 markup to blog feeds #44

dissolve opened this issue May 26, 2017 · 6 comments

Comments

@dissolve
Copy link

Most of the independant social media (Friendica, Mastodon, Known, Micro.blog, GnuSocial, Hubzilla, etc) all publish their html with microformats2 markup so that its easily processed by others.

http://microformats.org/wiki/microformats2
There are a number of parsers listed on that page as well

But for the common social web understanding of them, its best to look at
http://indieweb.org/h-feed and http://indieweb.org/h-entry

@markharding
Copy link
Member

Can you explain a bit more on how you envision this implementation?

@markharding markharding changed the title Add Microformats2 markup to blog feeds (?): Add Microformats2 markup to blog feeds Jun 23, 2017
@dissolve
Copy link
Author

Since the html is rendered mostly by javascript it does make things a bit more complex.
The most useful would be to add it as additional, very minimal html in a noscript tag.
For example, a single entry could be done like this
`
<noscript class="h-entry">

<a class="u-url" href="https://www.minds.com/newsfeed/723853542418292736">
<time class="dt-publish" datetime="2017-06-20T06:55:33-04:00">Jun 20, 2017, 6:55:33 AM
</time>
</a>
<div class="e-content p-name">
We just launched a few small design changes to channels, groups and the newsfeed. Let us know what you think.
</div>

<div "p-author h-card">
<img class="u-photo" src="https://d3ae0shxev0cb7.cloudfront.net//icon/100000000000000063/medium/1491496785">
<a "p-name u-url" href="/mark">Mark</a>
</div>
</noscript>
`
This makes posts parsable by other social web sites, Known and Micro.blog as well as a number of smaller sites use this as their default method of communicating between sites. Its a very simple addition to do for a large step toward federating with other independent social media.

@markharding
Copy link
Member

Thanks!
I'm guessing we might also run into issues because, right now, we have no server side rending.. so such scraping might be an issue.
Are there no standards such as endpoints where we could return json? I think that would be a cleaner solution to accomplish this.

@dissolve
Copy link
Author

Nothing that is widely deployed sadly. There is some work being done on JF2 which is a json equivalent of microformats, but its not used much yet.

@dissolve
Copy link
Author

What is the level of interest in federating with other software? I am always interested to see more software joining the mix.

@ottman
Copy link
Member

ottman commented Jun 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants