about summary refs log tree commit diff
diff options
context:
space:
mode:
-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,