🔍 implement open graph tags (#84)

This commit is contained in:
DrMaxNix 2024-04-14 18:08:35 +02:00
parent 2bb01da39c
commit b771b47bc4
1 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,7 @@
use Flake\Hidden;
use Flake\File;
use Flake\Project;
use Flake\Url;
// HACK: CONVERT GET PARAM TO PATH PARAM //
if(isset($_GET["lang"])){
@ -57,6 +58,12 @@
Page::author("Kim Endisch");
Page::keywords("selbstbestimmungsgesetz-jetzt", "sbgg-jetzt", "selbstbestimmungsgesetz", "selbstbestimmung", "sbgg", "SBGG", "tsg", "transsexuellengesetz", "trans", "nicht-binär", "non-binary", "deutschland", "gender", "geschlecht", "identität", "roadmap", "timeline", "stand", "aktuell", "aktueller stand", "wann", "wann kommt", "inkrafttreten", "referentenentwurf");
Page::$head["og_title"] = '<meta property="og:title" content="' . $dict->get("title") . '" />';
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/logo-bg-2048.png") . '" />';
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>';
Page::$head["mastodon_verify"] = '<link rel="me" href="https://lsbt.me/@sbggjetzt" />';