canonical / canonical.com

Repository for the new version of canonical.com
Other
35 stars 67 forks source link

Major parts of Canonical's website lacks social metadata card preview images #1101

Open johnlettman opened 10 months ago

johnlettman commented 10 months ago

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

  1. Open either the Twitter tweet composer or LinkedIn post inspector.
  2. Paste a Canonical URL into the composer/inspector.
  3. 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: image

Screenshot

Canonical pages

LinkedIn:

A test of a Canonical webpage in the LinkedIn card inspector demonstrating an irrelevant image chosen for the preview image.

Twitter: A test of a Canonical webpage in the Twitter tweet composer showing no preview image selected.

vs. OpenStack pages

LinkedIn:

A test of an OpenStack webpage in the LinkedIn card inspector demonstrating a preview image.

Twitter: A test of an OpenStack webpage in the Twitter tweet composer demonstrating a preview image.

Other views of the problem

'canonical.com' in the LinkedIn post composer. 'canonical.com/careers' in the LinkedIn post composer. 'canonical.com/partners' in the LinkedIn post composer. 'canonical.com/projects' in the LinkedIn post composer.
johnlettman commented 10 months ago

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

johnlettman commented 10 months ago

In the case of the careers page, there should be this image:

Canonical careers page social media preview image, two people smiling with a Canonical logomark.

However, it appears this templating isn't rendering: https://github.com/canonical/canonical.com/blob/99034cd0d15c1d70290234dc2dc07c1f23c5438d/templates/base_index.html#L53-L57

A screenshot of the LinkedIn post composer showing the desired image for the Canonical careers page not rendering as expected.
carkod commented 7 months ago

I believe this has been fixed?

lizzochek commented 7 months ago

@carkod no, we need designers to create banner images, so it was moved to backlog