about summary refs log tree commit diff
path: root/users/tazjin/blog/fragments.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/blog/fragments.nix')
-rw-r--r--users/tazjin/blog/fragments.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/users/tazjin/blog/fragments.nix b/users/tazjin/blog/fragments.nix
index 78a64afa3932..98028fad7029 100644
--- a/users/tazjin/blog/fragments.nix
+++ b/users/tazjin/blog/fragments.nix
@@ -74,6 +74,11 @@ let
     echo '<article><h2 class="inline">${escape post.title}</h2>' >> $out
     echo '<aside class="date">' >> $out
     date --date="@${toString post.date}" '+%Y-%m-%d' >> $out
+    ${
+      if post ? updated
+      then ''date --date="@${toString post.updated}" '+ (updated %Y-%m-%d)' >> $out''
+      else ""
+    }
     echo '</aside>' >> $out
 
     ${