about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/tvl/footer/default.nix21
-rw-r--r--web/tvl/template/default.nix16
2 files changed, 22 insertions, 15 deletions
diff --git a/web/tvl/footer/default.nix b/web/tvl/footer/default.nix
new file mode 100644
index 0000000000..7412d019ee
--- /dev/null
+++ b/web/tvl/footer/default.nix
@@ -0,0 +1,21 @@
+# Footer fragment for TVL homepages, used by //web/tvl/template for
+# our static pages and also via //web/blog for blog posts.
+{ lib, ... }:
+
+args: ''
+  <p class="footer">
+    <a class="uncoloured-link" href="https://at.tvl.fyi/?q=%2F%2FREADME.md">code</a>
+    |
+    <a class="uncoloured-link" href="https://cl.tvl.fyi/">reviews</a>
+    |
+    <a class="uncoloured-link" href="https://tvl.fyi/builds">ci</a>
+    |
+    <a class="uncoloured-link" href="https://b.tvl.fyi/">bugs</a>
+    |
+    <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) args.extraFooter + ''
+  </p>
+  <p class="lod">ಠ_ಠ</p>
+''
diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix
index b91016c22f..f33274f02e 100644
--- a/web/tvl/template/default.nix
+++ b/web/tvl/template/default.nix
@@ -37,21 +37,7 @@ runCommandNoCC "index.html" {
   footerPart = ''
     <hr>
     <footer>
-      <p class="footer">
-        <a class="uncoloured-link" href="https://at.tvl.fyi/?q=%2F%2FREADME.md">code</a>
-        |
-        <a class="uncoloured-link" href="https://cl.tvl.fyi/">reviews</a>
-        |
-        <a class="uncoloured-link" href="https://tvl.fyi/builds">ci</a>
-        |
-        <a class="uncoloured-link" href="https://b.tvl.fyi/">bugs</a>
-        |
-        <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>
+      ${depot.web.tvl.footer args}
     </footer>
   </body>
   '';