From gitlab at videolan.org Wed Nov 4 07:09:38 2026
From: gitlab at videolan.org (Jean-Baptiste Kempf (@jbk))
Date: Wed, 04 Nov 2026 08:09:38 +0100
Subject: [www-doc] [Git][VideoLAN.org/websites][master] 4 commits: header:
fix language tags and hreflang links
Message-ID: <6aeada327a574_2588bd15318e582684118@gitlab.mail>
Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites
Commits:
8a5649ac by Martin Finkel at 2026-11-04T12:58:44+07:00
header: fix language tags and hreflang links
Google ignores relative hreflang URLs and needs each page to list
itself. Use absolute https URLs, list the English page, and use BCP 47
tags (pt-BR) instead of gettext locale names (pt_BR) in hreflang and
the html lang attribute.
- - - - -
03eb63d3 by Martin Finkel at 2026-11-04T12:58:52+07:00
header: add a canonical link to generated English pages
Without one, Google may index the http:// or index.html copy of a page,
as it currently does for www.videolan.org/vlc/. Translated pages get
none, as nginx may serve them at the English URL.
- - - - -
9a410453 by Martin Finkel at 2026-11-04T12:59:09+07:00
index: declare the site name
Google currently shows "VLC: Sitio oficial" as the site name, taken
from the Spanish home page title. Declare it with WebSite structured
data.
- - - - -
84bdb6fa by Martin Finkel at 2026-11-04T12:59:16+07:00
header: add a 192x192 favicon
The only favicon is 16x16, below the 48x48 minimum Google needs to show
one in search results. Render one from images/icons-VLC/vlc.mini.svg.
- - - - -
3 changed files:
- + www.videolan.org/images/favicon-192.png
- www.videolan.org/include/header.php
- www.videolan.org/index.php
Changes:
=====================================
www.videolan.org/images/favicon-192.png
=====================================
Binary files /dev/null and b/www.videolan.org/images/favicon-192.png differ
=====================================
www.videolan.org/include/header.php
=====================================
@@ -141,7 +141,7 @@ function start_head( $title,
}
?>
- >
+ >
@@ -159,6 +159,13 @@ function start_head( $title,
- VideoLAN
+ '."\n";
+ } ?>
+
+
@@ -175,25 +183,23 @@ function start_head( $title,
0 ) {
$root_filename = explode('.', $_SERVER['SCRIPT_NAME'] );
echo ""."\n";
- foreach($alternate_lang as $lang) {
+ foreach(array_merge(array("en"), $alternate_lang) as $lang) {
if( $lang == "en" ) {
- echo ' '."\n";
+ $en_url = 'https://www.videolan.org/'.$root_filename[0].'.html';
/* we need a ref to v.o/ or v.o/vlc/ but use this header as well for i.e. vlc/download-windows.html
* so, only place it if we are in a "index" file */
if (strcasecmp(substr($root_filename[0], strlen($root_filename[0]) - 5),"index")===0) {
- echo ' '."\n";
+ $en_url = 'https://www.videolan.org/'.substr($root_filename[0], 0, -5);
+ echo ' '."\n";
}
+ echo ' '."\n";
}
else {
- /* hreflang probably requires - instead of _ this probably needs fixing
- * ask google to include all those?
- * http://www.w3.org/International/articles/bcp47/
- */
- echo ' '."\n";
+ echo ' '."\n";
}
}
}
=====================================
www.videolan.org/index.php
=====================================
@@ -18,6 +18,16 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
/* Main page */
?>
+
+
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/compare/7e57bdda0615cdbe91dc24268f0eb8371858e450...84bdb6fa45fc87c65e511a52f0e5e1c380149095
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/compare/7e57bdda0615cdbe91dc24268f0eb8371858e450...84bdb6fa45fc87c65e511a52f0e5e1c380149095
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
From gitlab at videolan.org Wed Nov 4 12:34:38 2026
From: gitlab at videolan.org (Jean-Baptiste Kempf (@jbk))
Date: Wed, 04 Nov 2026 13:34:38 +0100
Subject: [www-doc] [Git][VideoLAN.org/websites][master] header: remove the
Universal Analytics tag
Message-ID: <6aeb265e35c8c_2588bd14bd0c9027259e5@gitlab.mail>
Jean-Baptiste Kempf pushed to branch master at VideoLAN organization / websites
Commits:
d2be1e10 by Martin Finkel at 2026-11-04T17:15:13+07:00
header: remove the Universal Analytics tag
Google stopped processing Universal Analytics data in July 2023, so the
UA-38853043-1 tag only loaded Google's script on every page and sent
visitor hits nowhere.
- - - - -
1 changed file:
- www.videolan.org/include/header.php
Changes:
=====================================
www.videolan.org/include/header.php
=====================================
@@ -253,16 +253,7 @@ function start_head( $title,
}
} ?>
-
-
-
-