1
0
Fork 0

Added html_head env var to templates

master
Mike Gerwitz 2013-06-16 13:03:03 -04:00
parent 110e557293
commit 2ff9b89452
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
3 changed files with 4 additions and 2 deletions

View File

@ -148,7 +148,8 @@ msgfmt="${msgfmt:-$default}"
# make configuration available to all scripts # make configuration available to all scripts
export title desc copyright license msgfmt url_root path_tpl path \ export title desc copyright license msgfmt url_root path_tpl path \
html_external_css html_footer html_index_footer html_commit_footer \ 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 # if raw processing was requested, then we are done; pass the torch
test $do_raw && { test $do_raw && {

View File

@ -36,7 +36,7 @@ cat <<EOF
p.ref { margin: 0.25em 0em; } p.ref { margin: 0.25em 0em; }
$commit_html_inline_css $commit_html_inline_css
</style> </style>
$commit_html_head $html_head
</head> </head>
<body class="${html_body_class:-commit}"> <body class="${html_body_class:-commit}">
<article> <article>

View File

@ -53,6 +53,7 @@ cat <<EOH
"$html_external_css" "$html_external_css"
) )
<title>$title${subject:+"${html_tsep:-&mdash;}$subject"}</title> <title>$title${subject:+"${html_tsep:-&mdash;}$subject"}</title>
$html_head
</head> </head>
<body class="${html_body_class:-index}"> <body class="${html_body_class:-index}">
<header> <header>