canonical.com
canonical.com copied to clipboard
Major parts of Canonical's website lacks social metadata card preview images
Advanced apologies for the nitpicking issue.
Summary
Canonical currently uses a subset of both Twitter and OpenGraph social metadata across the site:
<meta name="twitter:account_id" content="169015850">
<meta name="twitter:site" content="@canonical">
<meta property="og:type" content="website">
<meta property="og:url" content="https://canonical.com/">
<meta property="og:site_name" content="Canonical">
However, the metadata lacks information regarding the image when rendering a social media card linking to the site. As a result, Canonical links appear with an image pulled from background elements or with a "missing image" placeholder.
This may cause a slightly negative perception of the link or downplay its visibility in the social media timeline, especially in the case of adverts to open positions, blog posts, or information about Canonical, its services, and its products.
Process
- Open either the Twitter tweet composer or LinkedIn post inspector.
- Paste a Canonical URL into the composer/inspector.
- Inspect results.
Expected result
Links to Canonical should be rendered with contextual previews, whether they are product logos, names of the page next to the Canonical logo, or static compositions in the Canonical theme.
Suggestion actions
The rendered HTML should include the following tags:
<meta name="twitter:image" content="URL to the image">
<meta property="og:image" content="URL to the image">
In my opinion, the homepage should take precedence, with product pages probably following behind. All of these display with a variation of the following background element and appear broken:
Screenshot
Canonical pages
Twitter:
vs. OpenStack pages
Twitter:
Other views of the problem
Also noteworthy is the repetition of Canonical
in the social metadata for the homepage here:
<meta name="twitter:title" content="Canonical | Trusted open source for enterprises | Canonical">
<meta property="og:title" content="Canonical | Trusted open source for enterprises | Canonical">
It occurs here due to the title including the first Canonical |
portion:
https://github.com/canonical/canonical.com/blob/99034cd0d15c1d70290234dc2dc07c1f23c5438d/templates/base_index.html#L30-L31
In the case of the careers page, there should be this image:
However, it appears this templating isn't rendering: https://github.com/canonical/canonical.com/blob/99034cd0d15c1d70290234dc2dc07c1f23c5438d/templates/base_index.html#L53-L57

I believe this has been fixed?
@carkod no, we need designers to create banner images, so it was moved to backlog