Skip to content

WIP: [#61] Add open graph and schemajson

Adds OpenGraph and schemajson in html header so that it is better displayed in social networks when a link is shared.

To test it

I needed to kill and restart the tasks process: python3 manage.py process_tasks Then I need to edit repo name or description to trigger repo page update.

Then go to public repo page (Repo > View repo)

Then there should have og:title and @Service in html head.

To do

  • Fix image displaying: repo icon, or fallback to F-Droid icon
  • Tests to ensure og tags presence and content, and json schema
  • Screenshots of link displaying when shared in social networks

Preview on social networks

Mastodon

mastodon-before mastodon-after

Twitter

twitter-before twitter-after

Facebook

facebook-before facebook-after

Edited by Julien Maulny

Merge request reports