summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-08-24 04:27:38 +0000
committerFreya Murphy <freya@freyacat.org>2025-08-24 04:27:38 +0000
commit08d7e00ec1920003d4b9405fce379e000559224c (patch)
tree1e262e6a1f29060faff7a991d661d59a14b10281
parentremove redundant about link in repos (diff)
downloadcgit-08d7e00ec1920003d4b9405fce379e000559224c.tar.gz
cgit-08d7e00ec1920003d4b9405fce379e000559224c.tar.bz2
cgit-08d7e00ec1920003d4b9405fce379e000559224c.zip
add more meta tags to the header
-rw-r--r--ui-shared.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c
index ccf066e..da37b06 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");