fix(tazjin/blog): ensure unlisted posts are rendered

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
This commit is contained in:
Vincent Ambo 2022-10-07 01:50:15 +03:00 committed by tazjin
parent a7fdd45bf2
commit 4d19955580

View file

@ -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