docs/website: add opengraph image and meta tags

When linking Buildroot website pages on social media, some platforms will
attempt to display an image. If such an image is not explicitly specified,
then the social media platform will usually take the first "large" image
from that page.

Recently, there was a post on LinkedIn announcing the new sponsorship from
Texas Instruments, linking to https://buildroot.org/sponsors.html [1].
However, because the first "large image" on that page is the logo from
another sponsor (EVS), this is the one that got displayed and it looks
awkward.

To avoid this situation, let's implement the OpenGraph protocol [2], which
is adopted by LinkedIn. Explicitly specify the image, which is the Buildroot
logo with text, exported from the Gimp (.xcf) original image. To avoid
rendering issues due to transparent background on social media platforms,
the logo is exported with a background color.

[1] https://gitlab.com/-/project/2648174/uploads/5e518b0ec5a2f48d154466aaf117e6ab/image.png
[2] https://ogp.me/

Signed-off-by: Titouan Christophe <titouan.christophe@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Titouan Christophe
2026-10-06 22:20:41 +02:00
committed by Peter Korsgaard
parent f51bf05d24
commit 846bdb2222
2 changed files with 7 additions and 0 deletions

View File

@@ -8,6 +8,13 @@
<meta name="angelo.compagnucci@gmail.com" content="">
<link rel="icon" href="favicon.png">
<meta property="og:site_name" content="Buildroot">
<meta property="og:title" content="Buildroot - Making Embedded Linux Easy">
<meta property="og:description" content="Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://buildroot.org/images/logo-og.png">
<meta property="og:image:alt" content="Buildroot logo">
<title>Buildroot - Making Embedded Linux Easy</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.3.7/paper/bootstrap.min.css" integrity="sha256-LxKiHTQko0DUCUSgrIK23SYMymvfuj8uxXmblBvVWm0=" crossorigin="anonymous">

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB