Skip to content

Commit f5f29d4

Browse files
committed
add mobile viewport meta as first step against panzoom dance
On mobile, without an explicit viewport, pages can render at desktop width, forcing a two-handed pinch/zoom/pan "panzoom dance" just to read content, instead of simply scrolling vertically. Add the standard viewport meta tag in the base template so initial scale matches device width. This is a necessary foundation, not a complete fix: other overflow sources (long unbroken content, wide elements) can still cause horizontal scrolling and are handled in follow-up commits.
1 parent 77eb329 commit f5f29d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/_default/baseof.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
46
<title>{{ .Title }}</title>
57
{{- $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "main.scss" . | css.Sass }}
68
<link rel="stylesheet" href="{{ $style.RelPermalink }}">

0 commit comments

Comments
 (0)