]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: provide a way to customize html headers
[Gitweb] / gitweb.perl
index 3a8a2f0285bc72971d6f45521883981042f487adbb223b9ac816faf237dec3b1..944898b1c91b08eb65c4d588b0c0933c059f1ebe6a9708a71ecb284a264c90ec 100755 (executable)
@@ -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
@@ -3880,6 +3882,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";
 
This page took 0.267694 seconds and 4 git commands to generate.