From 4d19955580427165a86e82f2ff5c5d04fc34b467 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 7 Oct 2022 01:50:15 +0300 Subject: [PATCH] fix(tazjin/blog): ensure unlisted posts are rendered Change-Id: Iece11259e3c26ae0b40d16f9ba2c6b8ad5e9995f Reviewed-on: https://cl.tvl.fyi/c/depot/+/6886 Reviewed-by: tazjin Autosubmit: tazjin Tested-by: BuildkiteCI --- users/tazjin/blog/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/users/tazjin/blog/default.nix b/users/tazjin/blog/default.nix index 4f1ddc5ea..85e9d29b3 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