X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/7710178e45dee61e85ea77c4221309ce8c086f95..011f2e9bdddcbfe65da397629bca87d167313a28:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index 4f28512..40060ba 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -500,6 +500,8 @@ void cgit_print_docstart(struct cgit_context *ctx) } html("\n"); html("\n"); + if (ctx->cfg.header) + html_include(ctx->cfg.header); } void cgit_print_docend() @@ -609,14 +611,17 @@ void cgit_print_pageheader(struct cgit_context *ctx) html("\n"); html("\n"); - html("\n"); + + if (ctx->cfg.logo && ctx->cfg.logo[0] != 0) { + html("\n"); + } html("