From 37019a1eb69e9a9268e1ae9a891b9b7bfe4f5f49 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 28 Dec 2016 10:34:02 -0800 Subject: [PATCH] Add `meta` to Scribble template for mobile Forces the narrow (one-column) layout on mobile devices. --- scribble-lib/scribble/html-render.rkt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scribble-lib/scribble/html-render.rkt b/scribble-lib/scribble/html-render.rkt index 2de02bba..2a91f35e 100644 --- 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)