From 5c9c4aa56625962cf6c61abd069c392415864754 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 1 Oct 2021 01:12:40 +0300 Subject: [PATCH] refactor(web/tvl/template): Make static asset URL configurable Change-Id: I168924cd7b15103d64c9ad72172f72304e1d3a7d Reviewed-on: https://cl.tvl.fyi/c/depot/+/3659 Tested-by: BuildkiteCI Reviewed-by: sterni --- corp/website/default.nix | 2 +- web/atward/indexHtml/default.nix | 2 +- web/tvl/template/default.nix | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/corp/website/default.nix b/corp/website/default.nix index 2a44d2099..fac9a7dce 100644 --- a/corp/website/default.nix +++ b/corp/website/default.nix @@ -12,7 +12,7 @@ let index = depot.web.tvl.template { title = "TVL (The Virus Lounge) - Software consulting"; content = builtins.readFile ./content.md; - useUrls = true; # load resources from tvl.fyi + staticUrl = "https://tvl.fyi/static"; extraFooter = "\n|\n © ООО ТВЛ"; # TODO(tazjin): The `.tvl-logo` thing can probably go in the shared CSS. diff --git a/web/atward/indexHtml/default.nix b/web/atward/indexHtml/default.nix index adf7c1761..ebe516876 100644 --- a/web/atward/indexHtml/default.nix +++ b/web/atward/indexHtml/default.nix @@ -1,8 +1,8 @@ { depot, ... }: depot.web.tvl.template { - useUrls = true; title = "atward"; + staticUrl = "https://tvl.fyi/static"; content = '' atward ====== diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix index 7f4aa399a..fa8b860cf 100644 --- a/web/tvl/template/default.nix +++ b/web/tvl/template/default.nix @@ -8,15 +8,13 @@ , extraHead ? null # optional extra html to inject into