about summary refs log tree commit diff
path: root/users/tazjin
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-10-06T22·50+0300
committertazjin <tazjin@tvl.su>2022-10-06T22·53+0000
commit4d19955580427165a86e82f2ff5c5d04fc34b467 (patch)
tree98091ad1ee9621d7041f6d1ebd8d268e9b65a456 /users/tazjin
parenta7fdd45bf2176469a4a0c338053d4807e6f33795 (diff)
fix(tazjin/blog): ensure unlisted posts are rendered r/5045
Change-Id: Iece11259e3c26ae0b40d16f9ba2c6b8ad5e9995f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6886
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin')
-rw-r--r--users/tazjin/blog/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/users/tazjin/blog/default.nix b/users/tazjin/blog/default.nix
index 4f1ddc5ea5ed..85e9d29b3aae 100644
--- a/users/tazjin/blog/default.nix
+++ b/users/tazjin/blog/default.nix
@@ -21,7 +21,7 @@ let
 
   inherit (depot.web.blog) post includePost renderPost;
 
-  posts = filter includePost (list post (import ./posts.nix));
+  posts = list post (import ./posts.nix);
 
   rendered = pkgs.runCommand "tazjins-blog" { } ''
     mkdir -p $out
@@ -33,7 +33,10 @@ let
 
 in
 {
-  inherit posts rendered config;
+  inherit rendered config;
+
+  # Filter unlisted posts from the index
+  posts = filter includePost posts;
 
   # Generate embeddable nginx configuration for redirects from old post URLs
   oldRedirects = lib.concatStringsSep "\n" (map