diff options
author | Vincent Ambo <tazjin@google.com> | 2020-02-08T13·47+0000 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-02-08T13·47+0000 |
commit | 8e9fb739582b5ed871522826ea145f4a9dac2777 (patch) | |
tree | eb6b58fc4f68f2943b30a218040cdf019b26a776 /web/blog/default.nix | |
parent | cc2c130352eddb78c8b690320f0a765bb77b5bf6 (diff) |
refactor(web/blog): Use timestamps for dates instead of strings r/486
This lets me easily create an ordered list of entries if the homepage is designed to list both blog posts and other content.
Diffstat (limited to 'web/blog/default.nix')
-rw-r--r-- | web/blog/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/blog/default.nix b/web/blog/default.nix index bc7b9666f79b..1bc026bf2a8c 100644 --- a/web/blog/default.nix +++ b/web/blog/default.nix @@ -11,7 +11,7 @@ let post = struct "blog-post" { key = string; # title = string; - date = string; # *sigh* + date = int; # Path to the Markdown file containing the post content. content = path; @@ -39,8 +39,7 @@ let ${lib.concatStringsSep "\n" (map (post: "cp ${fragments.renderPost post} $out/${post.key}.html" ) posts)} - ''; # '' (this line makes nix-mode happy :/) - + ''; in import ./nginx.nix (args // { inherit posts renderedBlog; }) |