diff options
author | June McEnroe <june@causal.agency> | 2021-09-06 17:31:04 +0000 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-06 17:31:04 +0000 |
commit | 0d3229793b9100e9300ad3747e2d5fb11d70f6ed (patch) | |
tree | 01d9745e768d12fba44b5d904557d0b67d5270c1 /www/git.causal.agency/cgit | |
parent | Add Clay's Ark (diff) | |
download | src-0d3229793b9100e9300ad3747e2d5fb11d70f6ed.tar.gz src-0d3229793b9100e9300ad3747e2d5fb11d70f6ed.zip |
Show about path in page title
Diffstat (limited to 'www/git.causal.agency/cgit')
-rw-r--r-- | www/git.causal.agency/cgit/ui-summary.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/www/git.causal.agency/cgit/ui-summary.c b/www/git.causal.agency/cgit/ui-summary.c index 947812a8..df7f739a 100644 --- a/www/git.causal.agency/cgit/ui-summary.c +++ b/www/git.causal.agency/cgit/ui-summary.c @@ -114,6 +114,9 @@ void cgit_print_repo_readme(const char *path) } free(mimetype); + if (path) + ctx.page.title = fmtalloc("%s - %s", path, ctx.page.title); + cgit_print_layout_start(); if (ctx.repo->readme.nr == 0) goto done; |