about summary refs log tree commit diff
path: root/users/wpcarro/website/blog
diff options
context:
space:
mode:
Diffstat (limited to 'users/wpcarro/website/blog')
-rw-r--r--users/wpcarro/website/blog/default.nix15
1 files changed, 6 insertions, 9 deletions
diff --git a/users/wpcarro/website/blog/default.nix b/users/wpcarro/website/blog/default.nix
index 713c42a83b33..7056b026a21a 100644
--- a/users/wpcarro/website/blog/default.nix
+++ b/users/wpcarro/website/blog/default.nix
@@ -34,15 +34,12 @@ let
 
   toPostHtml = post: readFile (pkgs.substituteAll {
     src = ./fragments/post.html;
-    postUrl = "${config.baseUrl}/${post.key}.html";
+    postUrl = "${config.baseUrl}/posts/${post.key}.html";
     postTitle = post.title;
     postDate = formatDate post.date;
   });
-in {
-  inherit posts rendered config;
-
-  root = pkgs.runCommandNoCC "wpcarros-blog" {} ''
-    mkdir -p $out
-    cp ${wpcarro.website.render postsHtml} $out/index.html
-  '';
-}
+in pkgs.runCommandNoCC "wpcarros-blog" {} ''
+  mkdir -p $out
+  cp ${wpcarro.website.render postsHtml} $out/index.html
+  cp -r ${rendered} $out/posts
+''