~mdw
/
sgt
/
agedu
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Suggestion from James Beal: support a '--title' option to override the
[sgt/agedu]
/
html.c
diff --git
a/html.c
b/html.c
index
f1b4df0
..
7f82f39
100644
(file)
--- a/
html.c
+++ b/
html.c
@@
-876,7
+876,9
@@
char *html_query(const void *t, unsigned long index,
*/
htprintf(ctx, "<head>\n");
trie_getpath(t, index, path);
*/
htprintf(ctx, "<head>\n");
trie_getpath(t, index, path);
- htprintf(ctx, "<title>%s: ", PNAME);
+ htprintf(ctx, "<title>");
+ htescape(ctx, cfg->html_title, strlen(cfg->html_title), 0);
+ htprintf(ctx, ": ");
htescape(ctx, path, strlen(path), 0);
htprintf(ctx, "</title>\n");
htprintf(ctx, "</head>\n");
htescape(ctx, path, strlen(path), 0);
htprintf(ctx, "</title>\n");
htprintf(ctx, "</head>\n");