add meta viewport on stagit-index too
authorHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 19 Mar 2021 10:29:53 +0000 (11:29 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Fri, 19 Mar 2021 10:29:53 +0000 (11:29 +0100)
Patch by Oscar Benedito, thanks!

stagit-index.c

index 5cf905386de9e356999b6ef3542115cb841ba707..11a6017f4f86a2e1e74814548c09ec894d909398 100644 (file)
@@ -66,6 +66,7 @@ writeheader(FILE *fp)
        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, description, strlen(description));
        fprintf(fp, "</title>\n<link rel=\"icon\" type=\"image/png\" href=\"%sfavicon.png\" />\n", relpath);