diff options
| author | Freya Murphy <freya@freyacat.org> | 2025-08-24 04:27:38 +0000 |
|---|---|---|
| committer | Freya Murphy <freya@freyacat.org> | 2026-05-27 04:16:27 +0000 |
| commit | 42d7983eaf95764dd1fc89a7acc76617d4f02756 (patch) | |
| tree | f09de5150b3a8c3ffab1d69d80abe70e651f93a1 | |
| parent | remove redundant about link in repos (diff) | |
| download | cgit-42d7983eaf95764dd1fc89a7acc76617d4f02756.tar.gz cgit-42d7983eaf95764dd1fc89a7acc76617d4f02756.tar.bz2 cgit-42d7983eaf95764dd1fc89a7acc76617d4f02756.zip | |
add more meta tags to the header
| -rw-r--r-- | ui-shared.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 0630ad5..16c9f1b 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -818,6 +818,10 @@ void cgit_print_docstart(void) html("<title>"); html_txt(ctx.page.title); html("</title>\n"); + html("<meta charset='utf-8'>"); + html("<meta name='viewport' content='width=device-width, initial-scale=1'>"); + htmlf("<meta name='author' content='%s'>", ctx.cfg.root_title); + htmlf("<meta name='description' content='%s'>", ctx.cfg.root_title); htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version); if (ctx.cfg.robots && *ctx.cfg.robots) htmlf("<meta name='robots' content='%s'/>\n", ctx.cfg.robots); @@ -877,7 +881,7 @@ void cgit_print_docend(void) if (ctx.cfg.footer) html_include(ctx.cfg.footer); else { - htmlf("<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit %s</a> " + htmlf("<div class='footer'>generated by <a href='https://g.freya.cat/cgit/'>cgit %s</a> " "(<a href='https://git-scm.com/'>git %s</a>) at ", cgit_version, git_version_string); html_txt(show_date(time(NULL), 0, cgit_date_mode(DATE_ISO8601))); html("</div>\n"); |