-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 10be3c0..66d5b82 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -503,34 +503,36 @@ void cgit_print_docstart(struct cgit_context *ctx) | |||
503 | if (ctx->cfg.robots && *ctx->cfg.robots) | 503 | if (ctx->cfg.robots && *ctx->cfg.robots) |
504 | htmlf("<meta name='robots' content='%s'/>\n", ctx->cfg.robots); | 504 | htmlf("<meta name='robots' content='%s'/>\n", ctx->cfg.robots); |
505 | html("<link rel='stylesheet' type='text/css' href='"); | 505 | html("<link rel='stylesheet' type='text/css' href='"); |
506 | html_attr(ctx->cfg.css); | 506 | html_attr(ctx->cfg.css); |
507 | html("'/>\n"); | 507 | html("'/>\n"); |
508 | if (ctx->cfg.favicon) { | 508 | if (ctx->cfg.favicon) { |
509 | html("<link rel='shortcut icon' href='"); | 509 | html("<link rel='shortcut icon' href='"); |
510 | html_attr(ctx->cfg.favicon); | 510 | html_attr(ctx->cfg.favicon); |
511 | html("'/>\n"); | 511 | html("'/>\n"); |
512 | } | 512 | } |
513 | if (host && ctx->repo) { | 513 | if (host && ctx->repo) { |
514 | html("<link rel='alternate' title='Atom feed' href='"); | 514 | html("<link rel='alternate' title='Atom feed' href='"); |
515 | html(cgit_httpscheme()); | 515 | html(cgit_httpscheme()); |
516 | html_attr(cgit_hosturl()); | 516 | html_attr(cgit_hosturl()); |
517 | html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, | 517 | html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, |
518 | fmt("h=%s", ctx->qry.head))); | 518 | fmt("h=%s", ctx->qry.head))); |
519 | html("' type='application/atom+xml'/>"); | 519 | html("' type='application/atom+xml'/>\n"); |
520 | } | 520 | } |
521 | if (ctx->cfg.head_include) | ||
522 | html_include(ctx->cfg.head_include); | ||
521 | html("</head>\n"); | 523 | html("</head>\n"); |
522 | html("<body>\n"); | 524 | html("<body>\n"); |
523 | if (ctx->cfg.header) | 525 | if (ctx->cfg.header) |
524 | html_include(ctx->cfg.header); | 526 | html_include(ctx->cfg.header); |
525 | } | 527 | } |
526 | 528 | ||
527 | void cgit_print_docend() | 529 | void cgit_print_docend() |
528 | { | 530 | { |
529 | html("</div>"); | 531 | html("</div>"); |
530 | if (ctx.cfg.footer) | 532 | if (ctx.cfg.footer) |
531 | html_include(ctx.cfg.footer); | 533 | html_include(ctx.cfg.footer); |
532 | else { | 534 | else { |
533 | htmlf("<div class='footer'>generated by cgit %s at ", | 535 | htmlf("<div class='footer'>generated by cgit %s at ", |
534 | cgit_version); | 536 | cgit_version); |
535 | cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); | 537 | cgit_print_date(time(NULL), FMT_LONGDATE, ctx.cfg.local_time); |
536 | html("</div>\n"); | 538 | html("</div>\n"); |