mirror of
https://github.com/git/git.git
synced 2026-02-27 18:29:43 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
67ad42147a
commit
18e71bbda1
@@ -4214,6 +4214,7 @@ sub git_header_html {
|
||||
<head>
|
||||
<meta name="generator" content="gitweb/$version git/$git_version$mod_perl_version"/>
|
||||
<meta name="robots" content="index, nofollow"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>$title</title>
|
||||
EOF
|
||||
# the stylesheet, favicon etc urls won't work correctly with path_info
|
||||
|
||||
Reference in New Issue
Block a user