29 lines
566 B
Plaintext
29 lines
566 B
Plaintext
|
#!/bin/bash
|
||
|
cat <<EOH
|
||
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<link rel="alternate" title="RSS Feed"
|
||
|
href="rss.xml" type="application/rss+xml" />
|
||
|
<title>$title</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>$title</h1>
|
||
|
<h2>$desc</h2>
|
||
|
EOH
|
||
|
|
||
|
# generate index and populate statistical vars
|
||
|
do-index
|
||
|
|
||
|
cat <<EOF
|
||
|
<div id="rss"><a href="rss.xml">RSS</a></div>
|
||
|
<hr />
|
||
|
<footer>
|
||
|
<div>Copyright © $yearrange $copyright</div>
|
||
|
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</div>
|
||
|
<div>$lasthash</div>
|
||
|
</footer>
|
||
|
</body>
|
||
|
</html>
|
||
|
EOF
|