2013-05-19 15:56:17 -04:00
|
|
|
#!/bin/bash
|
|
|
|
cat <<EOH
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<link rel="alternate" title="RSS Feed"
|
|
|
|
href="rss.xml" type="application/rss+xml" />
|
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-05-19 15:56:17 -04:00
|
|
|
<title>$title</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2013-05-19 17:07:29 -04:00
|
|
|
<header>
|
|
|
|
<h1>$title</h1>
|
|
|
|
<h2>$desc</h2>
|
|
|
|
</header>
|
2013-05-19 15:56:17 -04:00
|
|
|
EOH
|
|
|
|
|
|
|
|
# generate index and populate statistical vars
|
|
|
|
do-index
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
<footer>
|
2013-05-19 17:07:29 -04:00
|
|
|
<div id="rss"><a href="rss.xml">RSS</a></div>
|
|
|
|
<hr />
|
|
|
|
$( [ -n "$html_footer" ] \
|
|
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_footer"
|
|
|
|
)
|
2013-05-20 06:35:15 -04:00
|
|
|
$( [ -n "$html_index_footer" ] \
|
|
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_index_footer"
|
|
|
|
)
|
2013-05-19 15:56:17 -04:00
|
|
|
<div>Copyright © $yearrange $copyright</div>
|
|
|
|
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</div>
|
2013-05-19 17:07:29 -04:00
|
|
|
<div class="commit-id">$lasthash</div>
|
2013-05-19 15:56:17 -04:00
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
EOF
|