gitweb: add viewport meta tag for mobile devices

Without a viewport meta tag, phone browsers render gitweb at desktop width and scale the whole page down to fit the screen. Add a viewport meta tag so the layout viewport tracks device width. This is the baseline needed for mobile CSS fixes in follow-up commits. Signed-off-by: Rito Rhymes <rito@ritovision.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Rito Rhymes committed Feb 16, 2026 at 15:53 UTC 18e71bbda1e4e8418a590a3a9490ccdaec7deba0
1 file changed +1
gitweb/gitweb.perl
+1
@@ -4214,6 +4214,7 @@ sub git_header_html {
4214 <head>
4215 <meta name="generator" content="gitweb/$version git/$git_version$mod_perl_version"/>
4216 <meta name="robots" content="index, nofollow"/>
4217 +<meta name="viewport" content="width=device-width, initial-scale=1"/>
4218 <title>$title</title>
4219 EOF
4220 # the stylesheet, favicon etc urls won't work correctly with path_info