From 48b62059cc10f5631adeed2f3cc994137e884f33 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Tue, 9 Apr 2024 21:10:54 -0400 Subject: [PATCH] Fix display of updated date. Looks like the updated date was never actually written to the output, so the template to display it never did anything. Furthermore, let's not bother displaying the updated date if it's the same as the publish date. --- layouts/default.xml | 2 ++ layouts/default.xsl | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/layouts/default.xml b/layouts/default.xml index 11aeec1..2f78b3d 100644 --- a/layouts/default.xml +++ b/layouts/default.xml @@ -64,6 +64,8 @@ end %> %>
<%= attribute_to_time(@item[:published]).strftime \ " %Y-%m-%d\n" if @item[:published] +%><%= attribute_to_time(@item[:updated]).strftime \ +" %Y-%m-%d\n" if @item[:updated] %>
<% end %>