1
0
Fork 0
repo2html/tpl/index

29 lines
566 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" />
<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 &copy; $yearrange $copyright</div>
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</div>
<div>$lasthash</div>
</footer>
</body>
</html>
EOF