diff options
| author | 2009-03-15 13:11:54 (JST) | |
|---|---|---|
| committer | 2009-06-08 01:55:44 (JST) | |
| commit | b5a3a2049648415e86d518a8bf2229b3e463b10f (patch) | |
| tree | 37c44671e4557d38ba3d5905f0b595376aece5d6 /ui-shared.c | |
| parent | 45e7fcecc1117440e6274ce3c6ab7d893c4986ee (diff) | |
| download | cgit-b5a3a2049648415e86d518a8bf2229b3e463b10f.zip cgit-b5a3a2049648415e86d518a8bf2229b3e463b10f.tar.gz | |
Add head-include configuration option.
This patch adds an option to the configuration file, "head-include",
which works just like "header" or "footer", except the content is put
into the HTML's <head> tag.
Diffstat (limited to 'ui-shared.c')
| -rw-r--r-- | ui-shared.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index de77bbf..fea2c40 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
| @@ -496,8 +496,10 @@ void cgit_print_docstart(struct cgit_context *ctx) | |||
| 496 | html_attr(cgit_hosturl()); | 496 | html_attr(cgit_hosturl()); |
| 497 | html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, | 497 | html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, |
| 498 | fmt("h=%s", ctx->qry.head))); | 498 | fmt("h=%s", ctx->qry.head))); |
| 499 | html("' type='application/atom+xml'/>"); | 499 | html("' type='application/atom+xml'/>\n"); |
| 500 | } | 500 | } |
| 501 | if (ctx->cfg.head_include) | ||
| 502 | html_include(ctx->cfg.head_include); | ||
| 501 | html("</head>\n"); | 503 | html("</head>\n"); |
| 502 | html("<body>\n"); | 504 | html("<body>\n"); |
| 503 | if (ctx->cfg.header) | 505 | if (ctx->cfg.header) |
