add meta viewport for scaling on mobile - stagit - static git page generator | |
git clone git://git.codemadness.org/stagit | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit a63645a5ea4e60523c0024f69c627f586b601d82 | |
parent ae41add24a87027343e3a6f7eea19f3902af4a12 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Sun, 15 Nov 2020 21:11:46 +0100 | |
add meta viewport for scaling on mobile | |
Patch by Augustin Fabre <[email protected]> | |
Diffstat: | |
M stagit.c | 1 + | |
1 file changed, 1 insertion(+), 0 deletions(-) | |
--- | |
diff --git 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; charse… | |
+ "<meta name=\"viewport\" content=\"width=device-width, initial… | |
"<title>", fp); | |
xmlencode(fp, title, strlen(title)); | |
if (title[0] && strippedname[0]) |