diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-28T20·26+0300 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-09-28T22·04+0000 |
commit | 0ec6b4fad6aa3d6ef201bee4b8f9926b21b2b4f1 (patch) | |
tree | 49157a3d6ad6617029da8a44ef74eaec2cb5fa34 /web/tvl | |
parent | 1431a0a7cabfae5a341f28c6ecdf685a2504b17c (diff) |
feat(web/tvl/template): Support `extraFooter` argument r/2933
Change-Id: If42bb8476cd513d7844ef3494e82563a5786c670 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3649 Tested-by: BuildkiteCI Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to '')
-rw-r--r-- | web/tvl/template/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix index 37a6545af767..7f4aa399a45c 100644 --- a/web/tvl/template/default.nix +++ b/web/tvl/template/default.nix @@ -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> |