From 2ff9b89452cb038a9b947ef8f44ad0e6d106a38e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 16 Jun 2013 13:03:03 -0400 Subject: [PATCH] Added html_head env var to templates --- repo2html | 3 ++- tpl/commit | 2 +- tpl/index | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/repo2html b/repo2html index 48ab1ef..6196d7a 100755 --- a/repo2html +++ b/repo2html @@ -148,7 +148,8 @@ msgfmt="${msgfmt:-$default}" # make configuration available to all scripts export title desc copyright license msgfmt url_root path_tpl path \ html_external_css html_footer html_index_footer html_commit_footer \ - html_pre_index html_body_class html_tsep repo_url repo_commit_url + html_pre_index html_body_class html_tsep html_head repo_url \ + repo_commit_url # if raw processing was requested, then we are done; pass the torch test $do_raw && { diff --git a/tpl/commit b/tpl/commit index b07018b..48dcc3e 100755 --- a/tpl/commit +++ b/tpl/commit @@ -36,7 +36,7 @@ cat < - $commit_html_head + $html_head
diff --git a/tpl/index b/tpl/index index d2d4b45..f53afe7 100755 --- a/tpl/index +++ b/tpl/index @@ -53,6 +53,7 @@ cat <$title${subject:+"${html_tsep:-—}$subject"} + $html_head