about summary refs log tree commit diff
path: root/web
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2021-11-30T09·51+0300
committerVincent Ambo <mail@tazj.in>2021-11-30T09·51+0300
commite61b50baf97940c53ff536443b4152c5fda79e08 (patch)
tree272d1848c7dfe8628936147d32d498073f64bee8 /web
parent6edfdd0773264b058736a8fb3887050d48a06c67 (diff)
chore(web): Correct URLs for assets & feeds on TVL blog r/3117
Change-Id: I8720d49f8f3f4010f57a53e763a4f246bf4eb3d8
Diffstat (limited to 'web')
-rw-r--r--web/blog/fragments.nix6
-rw-r--r--web/tvl/template/default.nix1
2 files changed, 5 insertions, 2 deletions
diff --git a/web/blog/fragments.nix b/web/blog/fragments.nix
index 9a4446324e57..63fc1ab4c5cf 100644
--- a/web/blog/fragments.nix
+++ b/web/blog/fragments.nix
@@ -11,6 +11,8 @@ let
   inherit (pkgs) runCommandNoCC writeText;
   inherit (depot.nix) renderMarkdown;
 
+  staticUrl = "https://static.tvl.fyi/${depot.web.static.drvHash}";
+
   # Generate a post list for all listed, non-draft posts.
   isDraft = post: (hasAttr "draft" post) && post.draft;
   isUnlisted = post: (hasAttr "listed" post) && !post.listed;
@@ -23,9 +25,9 @@ let
     <meta charset="utf-8">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <meta name="description" content="${escape name}">
-    <link rel="stylesheet" type="text/css" href="/static/tvl.css" media="all">
+    <link rel="stylesheet" type="text/css" href="${staticUrl}/tvl.css" media="all">
     <link rel="icon" type="image/webp" href="/static/favicon.webp">
-    <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="/feed.atom">
+    <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="https://tvl.fyi/feed.atom">
     <title>${escape name}: ${escape title}</title>
   </head>
   <body class="light">
diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix
index f89c49b8ccbf..6ccc10de6235 100644
--- a/web/tvl/template/default.nix
+++ b/web/tvl/template/default.nix
@@ -26,6 +26,7 @@ runCommandNoCC "${lib.strings.sanitizeDerivationName title}-index.html" {
       <meta name="description" content="The Virus Lounge">
       <link rel="stylesheet" type="text/css" href="${staticUrl}/tvl.css" media="all">
       <link rel="icon" type="image/webp" href="${staticUrl}/favicon.webp">
+      <link rel="alternate" type="application/atom+xml" title="Atom Feed" href="https://tvl.fyi/feed.atom">
       <title>${title}</title>
   '' + lib.optionalString (args ? extraHead) extraHead + ''
     </head>