2

Article Interop WG: How to represent titles?

Should title be inserted into Article.content as an <h1> tag, or should it go to Article.name?

@article_interop

top 6 comments
sorted by: hot top controversial new old
[-] django@social.coop 1 points 6 months ago

@silverpill @article_interop article.name would be ideal, though I think lemmy expects title

[-] rimu@mastodon.nzoss.nz 1 points 6 months ago* (last edited 6 months ago)

@django @silverpill @article_interop Lemmy uses 'name' on a Page (not Article).

If you get the URL of any Lemmy post and do a GET with the Accept header set to "application/activity+json" you'll see everything.

[-] tedu@honk.tedunangst.com 1 points 6 months ago

@silverpill that's interesting because I'd say no, but html pages frequently duplicate title and h1.

[-] JoeGermuska@midwest.social 1 points 6 months ago* (last edited 6 months ago)

That makes sense to me. The is metadata, and often includes context that isn't necessary in the article body.

[-] silverpill@mitra.social 1 points 6 months ago

@tedu @article_interop There might be popular services where name is ignored completely but <h1> in content gracefully degrades. If that's the case, <h1> (or <h1> plus name) would be preferable.

AFAIK Mastodon doesn't have this problem and will display Article.name. I don't know about the others.

[-] silverpill@mitra.social 1 points 6 months ago

@tedu @article_interop

Found the answer here: https://funfedi.dev/support_tables/generated/object_types/

Sharkey seems to be ignoring the name, I guess this means Misskey does that as well.

this post was submitted on 08 May 2024
2 points (100.0% liked)

Article Interop WG

37 readers
2 users here now

A group to discuss how Article objects can be better supported across the fediverse

founded 9 months ago
MODERATORS