about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-06 17:31:04 +0000
committerRory& <root@rory.gay>2025-03-12 06:36:20 +0100
commitddc7d898ca1a99e7a88ce09a43f95e0b1912d8a0 (patch)
tree9f50fca16314499f395e1a4b6590bc22817ada24
parentFix crash trying to print "this commit" on 404s (diff)
downloadcgit-magenta-ddc7d898ca1a99e7a88ce09a43f95e0b1912d8a0.tar.xz
Show about path in page title
-rw-r--r--ui-summary.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui-summary.c b/ui-summary.c

index 947812a..df7f739 100644 --- a/ui-summary.c +++ b/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;