ctucx.git: stagit

ctucx' stagit fork

commit 0cdc59b8fe9a042a0c32875c90b2d5be3c0aad1a
parent ecbac75848acfcd7ed4bba624358ffd62624344b
Author: Oscar Benedito <oscar@oscarbenedito.com>
Date: Mon, 6 Jul 2020 11:06:44 +0200

Responsive design
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/stagit-index.c b/stagit-index.c
@@ -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.ico\" />\n", relpath);
diff --git a/stagit.c b/stagit.c
@@ -344,6 +344,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])