diff options
-rw-r--r-- | tools/skeleton.xml | 2 | ||||
-rw-r--r-- | tools/xml-to-html.xsl | 13 |
2 files changed, 13 insertions, 2 deletions
diff --git a/tools/skeleton.xml b/tools/skeleton.xml index 6cd8db6..bfff053 100644 --- a/tools/skeleton.xml +++ b/tools/skeleton.xml @@ -8,6 +8,6 @@ primaryTopic=""> <topic iri="" /> <body xmlns="http://www.w3.org/1999/xhtml"> - + </body> </document> 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> |