From 10f804d3cc66346ed1f6b09dd97b7fbe877c4f82 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 10 Jul 2020 10:27:33 -0400 Subject: Add meta viewport tag --- html.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index af1ffb2..35b9d82 100644 --- a/html.c +++ b/html.c @@ -29,6 +29,12 @@ enum kcgi_err htmlHead(struct khtmlreq *html, const char *title) { || khtml_elem(html, KELEM_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", -- cgit 1.4.1