aboutsummaryrefslogtreecommitdiff
path: root/source/02_augment/formatted_commits.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'source/02_augment/formatted_commits.xsl')
-rw-r--r--source/02_augment/formatted_commits.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/02_augment/formatted_commits.xsl b/source/02_augment/formatted_commits.xsl
index 555e0d8..fed8c94 100644
--- a/source/02_augment/formatted_commits.xsl
+++ b/source/02_augment/formatted_commits.xsl
@@ -23,6 +23,20 @@
)/self::command/node()"/>
</xsl:template>
+<xsl:template match="date" mode="commit">
+ <xsl:copy>
+ <xsl:attribute name="time">
+ <xsl:value-of select="substring(text(), 12, 5)"/>
+ </xsl:attribute>
+
+ <xsl:apply-templates select="@*|node()" mode="commit"/>
+ </xsl:copy>
+</xsl:template>
+
+<xsl:template match="date/text()" mode="commit">
+ <xsl:value-of select="substring(., 0, 11)"/>
+</xsl:template>
+
<xsl:template match="message/text()" mode="commit">
<xsl:call-template name="formatter">
<xsl:with-param name="format">markdown</xsl:with-param>