- commit
- 96b1fdf6da7024b00db863c555c0ae5d1b8b3f61
- parent
- 887c4dae5fc8b08289f20937b95bc3780f0784ec
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-04-04 10:15
fix mobile viewport
Diffstat
M | gitolite/stagit.py | 1 | + |
M | src/stagit.c.in | 5 | +++-- |
2 files changed, 4 insertions, 2 deletions
diff --git a/gitolite/stagit.py b/gitolite/stagit.py
@@ -97,6 +97,7 @@ def render_index(): 97 97 fh.write('<!DOCTYPE html>\n') 98 98 fh.write('<html>\n<head>\n') 99 99 fh.write('<meta charset="UTF-8">') -1 100 fh.write('<meta name="viewport" content="width=device-width">\n') 100 101 fh.write('<title>Repositories</title>\n') 101 102 fh.write('<link rel="stylesheet" type="text/css" href="style.css" />\n') 102 103 fh.write('</head>\n<body>\n')
diff --git a/src/stagit.c.in b/src/stagit.c.in
@@ -319,8 +319,9 @@ write_header(FILE *fp, const char *title, const char *relpath) 319 319 T("<!DOCTYPE html>\n"); 320 320 T("<html>\n"); 321 321 T("<head>\n");322 -1 T("<meta charset=\"UTF-8\"><title>");323 -1 T("{title}");-1 322 T("<meta charset=\"UTF-8\">\n"); -1 323 T("<meta name=\"viewport\" content=\"width=device-width\">\n"); -1 324 T("<title>{title}"); 324 325 if (title[0] && reponame[0]) 325 326 T(" - "); 326 327 T("{reponame}");