52 lines
1.2 KiB
Bash
Executable File
52 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
cat <<EOF
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>$subject</title>
|
|
$( [ -n "$html_external_css" ] \
|
|
&& printf '<link rel="stylesheet" type="text/css" href="%s" />' \
|
|
"$html_external_css"
|
|
)
|
|
<style type="text/css">
|
|
sup { font-size: 0.6em; }
|
|
:target { background-color: #fce94f; }
|
|
p.ref { margin: 0.25em 0em; }
|
|
$commit_html_inline_css
|
|
</style>
|
|
$commit_html_head
|
|
</head>
|
|
<body class="commit">
|
|
<article>
|
|
<header>
|
|
<h1 class="subject">$subject</h1>
|
|
<h2 class="date">$year-$month-$day</h2>
|
|
</header>
|
|
|
|
$( cat )
|
|
|
|
<footer>
|
|
<p>
|
|
<a href="$path_root#$dategroup">(Return to index)</a>
|
|
</p>
|
|
|
|
<hr />
|
|
$( [ -n "$html_footer" ] \
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_footer"
|
|
)
|
|
$( [ -n "$html_commit_footer" ] \
|
|
&& printf '<div class="pre-copyright">%s</div>' "$html_commit_footer"
|
|
)
|
|
|
|
<div id="copyright">
|
|
Copyright © $year $copyright.
|
|
$license
|
|
</div>
|
|
<div class="commit-id">$hash</div>
|
|
</footer>
|
|
</article>
|
|
</body>
|
|
</html>
|
|
EOF
|