2012-10-07 11:01:32 -04:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOF
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2013-05-23 19:52:07 -04:00
|
|
|
<meta charset="utf-8" />
|
2012-10-07 11:01:32 -04:00
|
|
|
<title>$subject</title>
|
2013-05-19 17:06:53 -04:00
|
|
|
$( [ -n "$html_external_css" ] \
|
|
|
|
&& printf '<link rel="stylesheet" type="text/css" href="%s" />' \
|
|
|
|
"$html_external_css"
|
|
|
|
)
|
2013-01-30 22:37:33 -05:00
|
|
|
<style type="text/css">
|
2013-03-15 16:31:52 -04:00
|
|
|
sup { font-size: 0.6em; }
|
2013-01-30 22:37:33 -05:00
|
|
|
:target { background-color: #fce94f; }
|
2013-05-17 23:13:03 -04:00
|
|
|
p.ref { margin: 0.25em 0em; }
|
|
|
|
$commit_html_inline_css
|
2013-01-30 22:37:33 -05:00
|
|
|
</style>
|
2013-05-17 23:13:03 -04:00
|
|
|
$commit_html_head
|
2012-10-07 11:01:32 -04:00
|
|
|
</head>
|
2013-05-25 15:26:26 -04:00
|
|
|
<body class="commit">
|
2013-05-17 23:13:03 -04:00
|
|
|
<article>
|
|
|
|
<header>
|
|
|
|
<h1 class="subject">$subject</h1>
|
|
|
|
<h2 class="date">$year-$month-$day</h2>
|
|
|
|
</header>
|
2012-10-07 11:01:32 -04:00
|
|
|
|
|
|
|
$( cat )
|
|
|
|
|
2013-05-17 23:13:03 -04:00
|
|
|
<footer>
|
|
|
|
<p>
|
|
|
|
<a href="$path_root#$dategroup">(Return to index)</a>
|
|
|
|
</p>
|
2012-10-07 11:01:32 -04:00
|
|
|
|
2013-05-17 23:13:03 -04:00
|
|
|
<hr />
|
2013-05-19 17:07:29 -04:00
|
|
|
$( [ -n "$html_footer" ] \
|
|
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_footer"
|
|
|
|
)
|
2013-05-20 06:35:15 -04:00
|
|
|
$( [ -n "$html_commit_footer" ] \
|
|
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_commit_footer"
|
2013-05-17 23:13:03 -04:00
|
|
|
)
|
2012-10-07 11:01:32 -04:00
|
|
|
|
2013-05-17 23:13:03 -04:00
|
|
|
<div id="copyright">
|
|
|
|
Copyright © $year $copyright.
|
|
|
|
$license
|
|
|
|
</div>
|
|
|
|
<div class="commit-id">$hash</div>
|
|
|
|
</footer>
|
|
|
|
</article>
|
2012-10-07 11:01:32 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOF
|