From 4baf633622bd75492ce1e62336c8c2c99c44e13d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 5 Nov 2021 13:41:10 +0100 Subject: refactor(web/tvl/template): Move footer into a separate target This makes it possible for the footer to be reused in other places, e.g. when templating blog posts (which do not go through //web/tvl/template (yet)). Change-Id: Ia8ab0e1c6db4f76b4de49239e11a4474038f60ae Reviewed-on: https://cl.tvl.fyi/c/depot/+/3773 Tested-by: BuildkiteCI Reviewed-by: sterni --- web/tvl/footer/default.nix | 21 +++++++++++++++++++++ web/tvl/template/default.nix | 16 +--------------- 2 files changed, 22 insertions(+), 15 deletions(-) create mode 100644 web/tvl/footer/default.nix diff --git a/web/tvl/footer/default.nix b/web/tvl/footer/default.nix new file mode 100644 index 000000000000..7412d019ee56 --- /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: '' + +

ಠ_ಠ

+'' diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix index b91016c22f11..f33274f02edd 100644 --- a/web/tvl/template/default.nix +++ b/web/tvl/template/default.nix @@ -37,21 +37,7 @@ runCommandNoCC "index.html" { footerPart = ''
''; -- cgit 1.4.1