diff options
-rw-r--r-- | web/blog/default.nix | 3 | ||||
-rw-r--r-- | web/blog/fragments.nix | 1 | ||||
-rw-r--r-- | web/tvl/blog/default.nix | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/web/blog/default.nix b/web/blog/default.nix index f55c33a63a54..66d7759deb7b 100644 --- a/web/blog/default.nix +++ b/web/blog/default.nix @@ -24,6 +24,9 @@ let # Path to the Markdown file containing the post content. content = path; + # Optional name of the author to display. + author = option string; + # Should this post be included in the index? (defaults to true) listed = option bool; diff --git a/web/blog/fragments.nix b/web/blog/fragments.nix index 19d62fa4744d..8126278270dc 100644 --- a/web/blog/fragments.nix +++ b/web/blog/fragments.nix @@ -73,6 +73,7 @@ let then ''date --date="@${toString post.updated}" '+ (updated %Y-%m-%d)' >> $out'' else "" } + ${if post ? author then "echo ' by ${post.author}' >> $out" else ""} echo '</aside>' >> $out ${ diff --git a/web/tvl/blog/default.nix b/web/tvl/blog/default.nix index ca381935c679..59b405725b92 100644 --- a/web/tvl/blog/default.nix +++ b/web/tvl/blog/default.nix @@ -13,6 +13,7 @@ title = "Tvix: We are rewriting Nix"; date = 1638381387; content = ./rewriting-nix.md; + author = "tazjin"; } { @@ -20,6 +21,7 @@ title = "Tvix Status - September '22"; date = 1662995534; content = ./tvix-status-202209.md; + author = "tazjin"; draft = true; } ]; |