diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-26 16:16:31 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-26 16:16:31 -0700 |
commit | 208a1cc3d37f7c0f770440095fd3fa621f3ce006 (patch) | |
tree | 95785c6e168527bdda891b90624c4cd68dde0222 /gitweb/gitweb.perl | |
parent | 2ef89f38568c9bfa663a8c79354e6d2135fb6bf3 (diff) | |
parent | c1355b7ffb6573ff7c76aef7d3bab664fb895dc8 (diff) | |
download | git-208a1cc3d37f7c0f770440095fd3fa621f3ce006.tar.gz |
Merge branch 'lh/gitweb-site-html-head'
* lh/gitweb-site-html-head:
gitweb: provide a way to customize html headers
Diffstat (limited to 'gitweb/gitweb.perl')
-rwxr-xr-x | gitweb/gitweb.perl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index a95226e089..4f0c3bd90c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -85,6 +85,8 @@ our $home_link_str = "++GITWEB_HOME_LINK_STR++"; our $site_name = "++GITWEB_SITENAME++" || ($ENV{'SERVER_NAME'} || "Untitled") . " Git"; +# html snippet to include in the <head> section of each page +our $site_html_head_string = "++GITWEB_SITE_HTML_HEAD_STRING++"; # filename of html text to include at top of each page our $site_header = "++GITWEB_SITE_HEADER++"; # html text to include at home page @@ -3879,6 +3881,11 @@ EOF print "<base href=\"".esc_url($base_url)."\" />\n"; } print_header_links($status); + + if (defined $site_html_head_string) { + print to_utf8($site_html_head_string); + } + print "</head>\n" . "<body>\n"; |