aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2020-11-15 21:11:46 +0100
committerHiltjo Posthuma <[email protected]>2020-11-15 21:16:24 +0100
commita63645a5ea4e60523c0024f69c627f586b601d82 (patch)
treeefb84f1bedb1d40dbecd0dba763ffd0746354f2c
parentae41add24a87027343e3a6f7eea19f3902af4a12 (diff)
downloadstagit-a63645a5ea4e60523c0024f69c627f586b601d82.tar.gz
stagit-a63645a5ea4e60523c0024f69c627f586b601d82.zip
add meta viewport for scaling on mobile
Patch by Augustin Fabre <[email protected]>
-rw-r--r--stagit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/stagit.c b/stagit.c
index 13f5705..12a76a4 100644
--- a/stagit.c
+++ b/stagit.c
@@ -449,6 +449,7 @@ writeheader(FILE *fp, const char *title)
fputs("<!DOCTYPE html>\n"
"<html>\n<head>\n"
"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n"
+ "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n"
"<title>", fp);
xmlencode(fp, title, strlen(title));
if (title[0] && strippedname[0])