summary refs log tree commit diff
path: root/www
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-06 17:31:04 +0000
committerJune McEnroe <june@causal.agency>2021-09-06 17:31:04 +0000
commitef589a829e5e1445f73bf88154b31e54d3601cd0 (patch)
tree0d0678f8e8fa1a157e7a8305c7873a75daab6ae5 /www
parentAdd Clay's Ark (diff)
downloadsrc-ef589a829e5e1445f73bf88154b31e54d3601cd0.tar.gz
src-ef589a829e5e1445f73bf88154b31e54d3601cd0.zip
Show about path in page title
Diffstat (limited to 'www')
-rw-r--r--www/git.causal.agency/cgit/ui-summary.c3
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;