From: Nick Bowler Date: Wed, 10 Apr 2024 01:10:54 +0000 (-0400) Subject: Fix display of updated date. X-Git-Url: https://git.draconx.ca/gitweb/homepage.git/commitdiff_plain/48b62059cc10f5631adeed2f3cc994137e884f33?ds=inline 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. --- 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 %>