summaryrefslogtreecommitdiffabout
path: root/ui-shared.c
Unidiff
Diffstat (limited to 'ui-shared.c') (more/less context) (ignore whitespace changes)
-rw-r--r--ui-shared.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 8a00099..6f83d2a 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -428,24 +428,29 @@ void cgit_print_docstart(struct cgit_context *ctx)
428 html(cgit_doctype); 428 html(cgit_doctype);
429 html("<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n"); 429 html("<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>\n");
430 html("<head>\n"); 430 html("<head>\n");
431 html("<title>"); 431 html("<title>");
432 html_txt(ctx->page.title); 432 html_txt(ctx->page.title);
433 html("</title>\n"); 433 html("</title>\n");
434 htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version); 434 htmlf("<meta name='generator' content='cgit %s'/>\n", cgit_version);
435 if (ctx->cfg.robots && *ctx->cfg.robots) 435 if (ctx->cfg.robots && *ctx->cfg.robots)
436 htmlf("<meta name='robots' content='%s'/>\n", ctx->cfg.robots); 436 htmlf("<meta name='robots' content='%s'/>\n", ctx->cfg.robots);
437 html("<link rel='stylesheet' type='text/css' href='"); 437 html("<link rel='stylesheet' type='text/css' href='");
438 html_attr(ctx->cfg.css); 438 html_attr(ctx->cfg.css);
439 html("'/>\n"); 439 html("'/>\n");
440 if (ctx->cfg.favicon) {
441 html("<link rel='shortcut icon' href='");
442 html_attr(ctx->cfg.favicon);
443 html("'/>\n");
444 }
440 html("</head>\n"); 445 html("</head>\n");
441 html("<body>\n"); 446 html("<body>\n");
442} 447}
443 448
444void cgit_print_docend() 449void cgit_print_docend()
445{ 450{
446 html("</div>"); 451 html("</div>");
447 if (ctx.cfg.footer) 452 if (ctx.cfg.footer)
448 html_include(ctx.cfg.footer); 453 html_include(ctx.cfg.footer);
449 else { 454 else {
450 html("<div class='footer'>generated "); 455 html("<div class='footer'>generated ");
451 cgit_print_date(time(NULL), FMT_LONGDATE); 456 cgit_print_date(time(NULL), FMT_LONGDATE);