41 lines
999 B
Bash
Executable File
41 lines
999 B
Bash
Executable File
#!/bin/bash
|
|
cat <<EOH
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<link rel="alternate" title="RSS Feed"
|
|
href="rss.xml" type="application/rss+xml" />
|
|
$( [ -n "$html_external_css" ] \
|
|
&& printf '<link rel="stylesheet" type="text/css" href="%s" />' \
|
|
"$html_external_css"
|
|
)
|
|
<title>$title</title>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>$title</h1>
|
|
<h2>$desc</h2>
|
|
</header>
|
|
EOH
|
|
|
|
# generate index and populate statistical vars
|
|
do-index
|
|
|
|
cat <<EOF
|
|
<footer>
|
|
<div id="rss"><a href="rss.xml">RSS</a></div>
|
|
<hr />
|
|
$( [ -n "$html_footer" ] \
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_footer"
|
|
)
|
|
$( [ -n "$html_index_footer" ] \
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_index_footer"
|
|
)
|
|
<div>Copyright © $yearrange $copyright</div>
|
|
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</div>
|
|
<div class="commit-id">$lasthash</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
EOF
|