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.
%> <article>
<%= attribute_to_time(@item[:published]).strftime \
" <published>%Y-%m-%d</published>\n" if @item[:published]
+%><%= attribute_to_time(@item[:updated]).strftime \
+" <updated>%Y-%m-%d</updated>\n" if @item[:updated]
%> </article>
<% end
%> <html xmlns="<%= Xmlns['xhtml'] %>" id="<%=
<xsl:text>Posted </xsl:text>
<xsl:value-of select='/document/article/published' />
<xsl:if test='/document/article/updated'>
- <xsl:text>, last updated </xsl:text>
- <xsl:value-of select='/document/article/updated' />
+ <xsl:if test='/document/article/updated != /document/article/published'>
+ <xsl:text>, last updated </xsl:text>
+ <xsl:value-of select='/document/article/updated' />
+ </xsl:if>
</xsl:if>
</p>
</xsl:template>