feat(web/tvl/template): Support extraFooter argument

Change-Id: If42bb8476cd513d7844ef3494e82563a5786c670
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3649
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-09-28 23:26:38 +03:00 committed by tazjin
parent 1431a0a7ca
commit 0ec6b4fad6

View file

@ -6,6 +6,8 @@
, content
# optional extra html to inject into <head>
, extraHead ? null
# optional extra html to inject into <footer>
, extraFooter ? null
# whether to use global URLs instead of absolute paths
, useUrls ? false
}@args:
@ -49,6 +51,7 @@ runCommandNoCC "index.html" {
<a class="uncoloured-link" href="https://todo.tvl.fyi/">todos</a>
|
<a class="uncoloured-link" href="https://atward.tvl.fyi/">search</a>
'' + lib.optionalString (args ? extraFooter) extraFooter + ''
</p>
<p class="lod">_</p>
</footer>