Adding microdata attributes to Forem's articles as described in Schema.org.
The posts from Forem communities could use the Article type from Scheme.org to structure the data and create relationships within the content. Regular users wouldn't see a difference, but the page would get a semantic boost beyond HTML5, which would be good for SEO and other sites to get detailed information.
That way, the article would be associated with:
- The person who created it (
- The dates of publication and modification (
- The tags that classify it (
- The publisher when articles are posted in the name of a publication (
There is an integration issue between Medium and DEV/Forem. If I go to Medium and import a story from DEV, the date is always wrong. In particular, the article's date is not the DEV article's date, but the date the user joined DEV.
This seems to happen –and this is me speculating– because the articles don't clearly identify which of the many dates on the page is the article's date. Then, Medium picks the first one available as the article's date, which happens to be the author's information signup date:
Medium then imports the article to their site, but the date is wrong. For example, the article from the image above was published on August 29, 2021, but Medium will claim it was published on April 27, 2019:
This is a problem because articles exported to Medium will have old dates and won't appear as new on that platform. However, there's a workaround: users could copy Forem's articles and paste them onto Medium, but then the canonical reference to Forem would be lost.
This is most likely an issue on Medium-side, but it could potentially be prevented by making some changes on Forem-side. I could think of two options:
This would be a simple solution, and it could work, but it could also have some accessibility implications (the order in the code does not match the order on display). Plus, it may or may not work when importing from Medium.
The microdata solution is a bit more complex, but it has additional benefits that just reorganizing the content doesn't have (it facilitates processing by computers which may boost indexing/SEO and importing from other sites).