about summary refs log tree commit diff
path: root/web/blog/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'web/blog/default.nix')
-rw-r--r--web/blog/default.nix5
1 files changed, 2 insertions, 3 deletions
diff --git a/web/blog/default.nix b/web/blog/default.nix
index fd8f7dc9fc55..ec386a217766 100644
--- a/web/blog/default.nix
+++ b/web/blog/default.nix
@@ -40,8 +40,8 @@ let
   fragments = import ./fragments.nix args;
 
   # Functions for generating feeds for these blogs using //web/atom-feed.
-  toFeedEntry = defun [ post atom-feed.entry ] (post: rec {
-    id = "https://tazj.in/blog/${post.key}";
+  toFeedEntry = { baseUrl, ...}: defun [ post atom-feed.entry ] (post: rec {
+    id = "${baseUrl}/${post.key}";
     title = post.title;
     content = readFile (renderMarkdown post.content);
     published = post.date;
@@ -52,7 +52,6 @@ let
       href = id;
     };
   });
-
 in {
   inherit post toFeedEntry;
   inherit (fragments) renderPost;