Add Open Graph support #192

Closed
opened 2024-06-19 16:16:05 +02:00 by Pablo Vazquez · 6 comments

At the moment, sharing a link to an extension on social media or chat does not include any information through open graph.

Example of a link to an add-on shared on Telegram:
link shared

Add Open Graph support, with at least the following tags:

Global tags:

  • og:site_name

Extension details page:

  • og:title: Page title
  • og:image: Extension's featured image
  • og:image:alt: Extension's tagline
  • og:description Extension's tagline
  • og:url Absolute URL ( extension.get_absolute_url)

Apparently, X nowadays will fallback to OpenGraph so no need to add explicit twitter tags. We can see how it looks without them, otherwise we add it.

At the moment, sharing a link to an extension on social media or chat does not include any information through open graph. Example of a link to an add-on shared on Telegram: ![link shared](/attachments/87683e10-ffe8-4943-8709-dfacc44ae2ab) Add [Open Graph](https://ogp.me/) support, with at least the following tags: Global tags: * `og:site_name` Extension details page: * `og:title`: Page title * `og:image`: Extension's featured image * `og:image:alt`: Extension's tagline * `og:description` Extension's tagline * `og:url` Absolute URL ( `extension.get_absolute_url`) Apparently, X nowadays will [fallback to OpenGraph](https://developer.x.com/en/docs/twitter-for-websites/cards/guides/getting-started#opengraph) so no need to add explicit `twitter` tags. We can see how it looks without them, otherwise we add it.
Pablo Vazquez added the
Type
Feature
label 2024-06-19 16:16:05 +02:00
Márton Lente was assigned by Pablo Vazquez 2024-06-19 16:16:05 +02:00
Owner

seems like this change should also resolve #170?

seems like this change should also resolve #170?
Author
Owner

seems like this change should also resolve #170?

Yes, once the current issues are fixed.

> seems like this change should also resolve #170? Yes, once the current issues are fixed.

The above list of Open Graph tags have been implemented for detail pages, while keeping the fallback defaults for static pages. Example sharing previews:

I also think it fixes #170 as well.

Alternatively we can create a og:image placeholder for detail items and static pages that don't have a feature image, e.g. by making a pixel version of the dark placeholder image we currently use, or by creating a generic 'Blender Extensions' cover image that also works for static pages.

The above list of Open Graph tags have been implemented for detail pages, while keeping the fallback defaults for static pages. Example sharing previews: I also think it fixes #170 as well. Alternatively we can create a `og:image` placeholder for detail items and static pages that don't have a feature image, e.g. by making a pixel version of the dark placeholder image we currently use, or by creating a generic 'Blender Extensions' cover image that also works for static pages.
Author
Owner

The above list of Open Graph tags have been implemented for detail pages, while keeping the fallback defaults for static pages.

@martonlente Thanks!

Alternatively we can create a og:image placeholder for detail items and static pages that don't have a feature image, e.g. by making a pixel version of the dark placeholder image we currently use, or by creating a generic 'Blender Extensions' cover image that also works for static pages.

The cover image would be best, since it can be used as fallback for every page.

Similar to how we do it in Open Data:
blender open data

> The above list of Open Graph tags have been implemented for detail pages, while keeping the fallback defaults for static pages. @martonlente Thanks! > Alternatively we can create a `og:image` placeholder for detail items and static pages that don't have a feature image, e.g. by making a pixel version of the dark placeholder image we currently use, or by creating a generic 'Blender Extensions' cover image that also works for static pages. The cover image would be best, since it can be used as fallback for every page. Similar to how we do it in Open Data: ![blender open data](/attachments/fc92e341-a4d8-4127-8e17-65850427e47b)
160 KiB
Owner

This seems to be working now. Should the issue be closed? (just keeping the tracker organized)

This seems to be working now. Should the issue be closed? (just keeping the tracker organized)

Yes, I think the Open Graph support has been completed as outlined in the issue, and it should be safe to close it.

Yes, I think the Open Graph support has been completed as outlined in the issue, and it should be safe to close it.
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: infrastructure/extensions-website#192
No description provided.