summaryrefslogtreecommitdiff
path: root/tools/xml-to-html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xml-to-html.xsl')
-rw-r--r--tools/xml-to-html.xsl13
1 files changed, 12 insertions, 1 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index 64efa12..ab5daf9 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -76,7 +76,16 @@
href="/xhtml-rdfa-light.css" />
<meta name="robots" content="noarchive" />
</head>
- <xsl:apply-templates mode="body" select="xhtml:body" />
+ <body>
+ <xsl:apply-templates mode="body" select="xhtml:body/*" />
+ <footer>
+ <xsl:if test="not(//notes)">
+ <a href="https://defanor.uberspace.net/">defanor</a>,
+ <time><xsl:copy-of select="substring(@created,0,8)" /></time>
+ <xsl:if test="substring(@created,0,8) != substring(@modified,0,8)">–<time><xsl:copy-of select="substring(@modified,0,8)" /></time></xsl:if>
+ </xsl:if>
+ </footer>
+ </body>
</html>
</xsl:template>
@@ -112,6 +121,8 @@
</dt>
<dd>
<xsl:value-of select="document/@description" />
+ (<time><xsl:copy-of select="substring(document/@created,0,8)" /></time>
+ <xsl:if test="substring(document/@created,0,8) != substring(document/@modified,0,8)">–<time><xsl:copy-of select="substring(document/@modified,0,8)" /></time></xsl:if>)
</dd>
</xsl:template>