Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike@mikegerwitz.com>2013-06-16 13:03:03 -0400
committerMike Gerwitz <mike@mikegerwitz.com>2013-06-16 13:03:03 -0400
commit2ff9b89452cb038a9b947ef8f44ad0e6d106a38e (patch)
tree4d48d7d0fa4e7bb625cd0ec041840bc695b34a25
parent110e55729378de9ae63b78994ca2de133d252e39 (diff)
downloadrepo2html-2ff9b89452cb038a9b947ef8f44ad0e6d106a38e.tar.gz
repo2html-2ff9b89452cb038a9b947ef8f44ad0e6d106a38e.tar.bz2
repo2html-2ff9b89452cb038a9b947ef8f44ad0e6d106a38e.zip
Added html_head env var to templates
-rwxr-xr-xrepo2html3
-rwxr-xr-xtpl/commit2
-rwxr-xr-xtpl/index1
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 <<EOF
p.ref { margin: 0.25em 0em; }
$commit_html_inline_css
</style>
- $commit_html_head
+ $html_head
</head>
<body class="${html_body_class:-commit}">
<article>
diff --git a/tpl/index b/tpl/index
index d2d4b45..f53afe7 100755
--- a/tpl/index
+++ b/tpl/index
@@ -53,6 +53,7 @@ cat <<EOH
"$html_external_css"
)
<title>$title${subject:+"${html_tsep:-&mdash;}$subject"}</title>
+ $html_head
</head>
<body class="${html_body_class:-index}">
<header>