commit 37019a1eb69e9a9268e1ae9a891b9b7bfe4f5f49
parent f224034a1f5f21b81021cdd329f4fc7c2b802339
Author: Matthew Butterick <mbutterick@users.noreply.github.com>
Date: Wed, 28 Dec 2016 10:34:02 -0800
Add `meta` to Scribble template for mobile
Forces the narrow (one-column) layout on mobile devices.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/scribble-lib/scribble/html-render.rkt b/scribble-lib/scribble/html-render.rkt
@@ -867,6 +867,8 @@
(head ()
(meta ([http-equiv "content-type"]
[content "text/html; charset=utf-8"]))
+ (meta ([name "viewport"]
+ [content "width=device-width, initial-scale=0.8"]))
,title
,(scribble-css-contents scribble-css
(lookup-path scribble-css alt-paths)