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.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/web/blog/default.nix b/web/blog/default.nix
index 05367588e3fb..a93762dfea12 100644
--- a/web/blog/default.nix
+++ b/web/blog/default.nix
@@ -9,7 +9,7 @@ with depot.nix.yants;
 let
   # Type definition for a single blog post.
   post = struct "blog-post" {
-    key = string; #
+    key = string;
     title = string;
     date = int;
 
@@ -31,11 +31,9 @@ let
     oldKey = option string;
   };
 
-  posts = list post (import ./posts.nix);
   fragments = import ./fragments.nix args;
-
-  includePost = post: !(fragments.isDraft post) && !(fragments.isUnlisted post);
 in {
-  inherit post includePost;
+  inherit post;
   inherit (fragments) renderPost;
+  includePost = post: !(fragments.isDraft post) && !(fragments.isUnlisted post);
 }