Skip to content

Commit 9862845

Browse files
xswordsxIvan Latunov
andauthored
pythonliststyle: Add viewport meta tag (#121)
This makes the rendered HTML appear equally-sized on both mobile and desktop displays Co-authored-by: Ivan Latunov <ivan.latunov@chaos.com>
1 parent 4ef352d commit 9862845

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/httpserver/pythonliststyle.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const (
1717
<html>
1818
<head>
1919
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
20+
<meta name="viewport" content="width=device-width, initial-scale=1">
2021
<title>Directory listing for %s</title>
2122
</head>
2223
<body>

test/pythonliststyle_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ func TestServePythonStyleHtmlPageForDirectories(t *testing.T) {
1515
<html>
1616
<head>
1717
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
18+
<meta name="viewport" content="width=device-width, initial-scale=1">
1819
<title>Directory listing for /</title>
1920
</head>
2021
<body>

0 commit comments

Comments
 (0)