diff options
author | June McEnroe | 2021-09-06 17:31:04 +0000 |
---|---|---|
committer | June McEnroe | 2022-02-13 12:14:06 -0500 |
commit | 03519c7bc48bb58dc0c129f9e45c0e784f775bbb (patch) | |
tree | 208ba5259651d877b08f42aef8ae37400cbeeb84 | |
parent | Generate valid Atom feeds (diff) | |
download | cgit-03519c7bc48bb58dc0c129f9e45c0e784f775bbb.tar.gz cgit-03519c7bc48bb58dc0c129f9e45c0e784f775bbb.zip |
Show about path in page title
-rw-r--r-- | ui-summary.c | 3 |
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) | |||
114 | } | 114 | } |
115 | free(mimetype); | 115 | free(mimetype); |
116 | 116 | ||
117 | if (path) | ||
118 | ctx.page.title = fmtalloc("%s - %s", path, ctx.page.title); | ||
119 | |||
117 | cgit_print_layout_start(); | 120 | cgit_print_layout_start(); |
118 | if (ctx.repo->readme.nr == 0) | 121 | if (ctx.repo->readme.nr == 0) |
119 | goto done; | 122 | goto done; |