aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2018-11-18 13:22:08 +0100
committerAdrian Kummerlaender2018-11-18 13:22:08 +0100
commit76f867690e5ba76ae769b5f5c97297f32102b738 (patch)
tree505b3155dbabd3e8a8f2d0622907b8234998d174
parent3245eb4087da9cb5eb190838fd3b18b5100a7c95 (diff)
downloadblog.kummerlaender.eu-76f867690e5ba76ae769b5f5c97297f32102b738.tar
blog.kummerlaender.eu-76f867690e5ba76ae769b5f5c97297f32102b738.tar.gz
blog.kummerlaender.eu-76f867690e5ba76ae769b5f5c97297f32102b738.tar.bz2
blog.kummerlaender.eu-76f867690e5ba76ae769b5f5c97297f32102b738.tar.xz
blog.kummerlaender.eu-76f867690e5ba76ae769b5f5c97297f32102b738.zip
Fix footnote links on start page
-rw-r--r--source/99_result/start.xsl10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/99_result/start.xsl b/source/99_result/start.xsl
index a9d05c9..8db182c 100644
--- a/source/99_result/start.xsl
+++ b/source/99_result/start.xsl
@@ -83,4 +83,14 @@
</p>
</xsl:template>
+<xsl:template match="a[@class = 'footnote-ref']" mode="xhtml">
+ <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml">
+ <xsl:copy-of select="@*[name()='id' or name()='class']"/>
+ <xsl:attribute name="href">
+ <xsl:value-of select="concat('/article/', ./ancestor::entry/@handle, '/', ./@href)"/>
+ </xsl:attribute>
+ <xsl:apply-templates select="node()" mode="xhtml"/>
+ </xsl:element>
+</xsl:template>
+
</xsl:stylesheet>