about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-10 10:27:33 -0400
committerJune McEnroe <june@causal.agency>2020-07-10 10:27:33 -0400
commit10f804d3cc66346ed1f6b09dd97b7fbe877c4f82 (patch)
tree418d0bc176e296c6eb6eb4cb5a0ab2866cb59398
parentFold search form into nav (diff)
downloadscooper-10f804d3cc66346ed1f6b09dd97b7fbe877c4f82.tar.gz
scooper-10f804d3cc66346ed1f6b09dd97b7fbe877c4f82.zip
Add meta viewport tag
-rw-r--r--html.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/html.c b/html.c
index af1ffb2..35b9d82 100644
--- a/html.c
+++ b/html.c
@@ -30,6 +30,12 @@ enum kcgi_err htmlHead(struct khtmlreq *html, const char *title) {
 		|| khtml_puts(html, title)
 		|| khtml_closeelem(html, 1)
 		|| khtml_attr(
+			html, KELEM_META,
+			KATTR_NAME, "viewport",
+			KATTR_CONTENT, "width=device-width, initial-scale=1.0",
+			KATTR__MAX
+		)
+		|| khtml_attr(
 			html, KELEM_LINK,
 			KATTR_REL, "stylesheet",
 			KATTR_HREF, htmlStylesheet,