index template will output commit-id line only if available
parent
bea28c6ab9
commit
efa0adc41b
|
@ -84,7 +84,9 @@ cat <<EOF
|
||||||
)
|
)
|
||||||
<div>Copyright © $yearrange $copyright</div>
|
<div>Copyright © $yearrange $copyright</div>
|
||||||
<div>Last Updated: $( ./tsdate "$lastts" '%F %H:%M:%S' )</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>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in New Issue