🌐 english version of og image

This commit is contained in:
DrMaxNix 2024-04-14 19:06:18 +02:00
parent 251bb3378f
commit cc3a81e65f
3 changed files with 5 additions and 1 deletions

View File

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

BIN
asset/banner-en-bg-1920.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

View File

@ -61,7 +61,11 @@
Page::$head["og_title"] = '<meta property="og:title" content="SBGG.jetzt" />';
Page::$head["og_description"] = '<meta property="og:description" content="' . $dict->get("description") . '" />';
Page::$head["og_type"] = '<meta property="og:type" content="website" />';
Page::$head["og_image"] = '<meta property="og:image" content="' . File::file("./asset/banner-bg-1920.png") . '" />';
$banner_file_path = ([
"de" => "./asset/banner-de-bg-1920.png",
"en" => "./asset/banner-en-bg-1920.png",
])[$lang->get()] ?? "./asset/banner-de-bg-1920.png";
Page::$head["og_image"] = '<meta property="og:image" content="' . File::file($banner_file_path) . '" />';
Page::$head["og_url"] = '<meta property="og:url" content="' . Url::full() . '" />';
Page::$head["analytics"] = '<script defer data-domain="sbgg.jetzt" src="https://analytics.tjdev.de/js/script.js"></script>';