1
0
Fork 0

index template will output commit-id line only if available

tpl
Mike Gerwitz 2013-05-26 17:38:53 -04:00
parent bea28c6ab9
commit efa0adc41b
1 changed files with 3 additions and 1 deletions

View File

@ -84,7 +84,9 @@ cat <<EOF
)
<div>Copyright &copy; $yearrange $copyright</div>
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</div>
<div class="commit-id">$lasthash</div>
$( [ -n "$commit-id" ] \
&& printf '<div class="commit-id">%s</div>' "$lasthash"
)
</footer>
</body>
</html>