about summary refs log tree commit diff
path: root/corp
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-10-01T16·57+0300
committertazjin <mail@tazj.in>2021-10-07T14·21+0000
commit26f0ba5464131630db06dcbba5b445516b95c2ff (patch)
treea9dc6c0ddda0118f0c3df15af31f74fabd8eabfc /corp
parent8696726244ac60883028c583628411639bf75bb4 (diff)
refactor(web): use static.tvl.{fyi|su} for static assets r/2953
Replaces all uses of relative static paths in TVL pages with the
static.tvl.fyi domain. Where possible, the drv hash is directly
embedded in the content.

Change-Id: Ia882dd37ceae9d047cd81cf1eb37a856b339643a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3682
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'corp')
-rw-r--r--corp/website/content.md2
-rw-r--r--corp/website/default.nix3
2 files changed, 2 insertions, 3 deletions
diff --git a/corp/website/content.md b/corp/website/content.md
index 6dba8dfdad57..f7ca9786fbea 100644
--- a/corp/website/content.md
+++ b/corp/website/content.md
@@ -3,7 +3,7 @@ The Virus Lounge
 
 ----------------
 
-<img class="tvl-logo" src="https://tvl.fyi/static/tvl-animated.svg"
+<img class="tvl-logo" src="https://static.tvl.su/latest/logo-animated.svg"
      alt="Virus with lambda-shaped spike proteins sitting on an armchair">
 
 Welcome to the corporate face of [The Virus Lounge][tvl-fyi].
diff --git a/corp/website/default.nix b/corp/website/default.nix
index fac9a7dce3e8..8740041d9be7 100644
--- a/corp/website/default.nix
+++ b/corp/website/default.nix
@@ -7,12 +7,11 @@ let
     "@context" = "https://schema.org";
     "@type" = "Organisation";
     url = "https://tvl.su";
-    logo = "https://tvl.fyi/static/tvl-animated.svg";
+    logo = "https://static.tvl.fyi/${depot.web.static.drvHash}/logo-animated.svg";
   };
   index = depot.web.tvl.template {
     title = "TVL (The Virus Lounge) - Software consulting";
     content = builtins.readFile ./content.md;
-    staticUrl = "https://tvl.fyi/static";
     extraFooter = "\n|\n © ООО ТВЛ";
 
     # TODO(tazjin): The `.tvl-logo` thing can probably go in the shared CSS.