add alternate hreflang meta links

This commit is contained in:
2022-12-26 16:10:14 +01:00
parent 14ef9100d5
commit 76673842b7
4 changed files with 26 additions and 0 deletions

View File

@ -122,6 +122,8 @@ function send_html(): void
echo '<meta name="viewport" content="width=device-width, initial-scale=1">';
echo '<meta name="description" content="Huge link list of Tor hidden service onions. All the darknet links you need in one place.">';
echo '<link rel="canonical" href="' . CANONICAL_URL . $_SERVER['SCRIPT_NAME'] . (empty($canonical_query) ? '' : '?' . http_build_query($canonical_query)) . '">';
echo '<link rel="alternate" href="' . CANONICAL_URL . $_SERVER['SCRIPT_NAME'] . (empty($canonical_query) ? '' : '?' . http_build_query($canonical_query)) . '" hreflang="x-default">';
alt_links();
echo '<style>'.$style.'</style>';
echo '<base target="_blank">';
echo '</head><body><main>';