Add OpenGraph tags

This commit is contained in:
2022-12-30 12:16:46 +01:00
parent 53baf2c9e8
commit b7c6d4de4f
3 changed files with 13 additions and 2 deletions

View File

@ -170,5 +170,6 @@ function alt_links(): void
$canonical_query['lang'] = $lang;
$link = CANONICAL_URL . ($_SERVER['SCRIPT_NAME'] === '/index.php' ? '/' : $_SERVER['SCRIPT_NAME']) . '?' . http_build_query($canonical_query);
echo '<link rel="alternate" href="'.$link.'" hreflang="'.$lang.'" />';
echo '<meta property="og:locale:alternate" content="'.$data['locale'].'">';
}
}