Fix directory links in everything

This commit is contained in:
~lucidiot 2021-04-04 22:29:42 +02:00
parent 5a1f922bfc
commit b3546826a8
1 changed files with 9 additions and 1 deletions

View File

@ -15,7 +15,15 @@
<xsl:template match="file | directory">
<xsl:param name="base" />
<li>
<a href="{concat($base, '/', @name)}">
<a>
<xsl:attribute name="href">
<xsl:value-of select="$base" />
<xsl:text>/</xsl:text>
<xsl:value-of select="@name" />
<xsl:if test="self::directory">
<xsl:text>/</xsl:text>
</xsl:if>
</xsl:attribute>
<xsl:value-of select="@name" />
</a>
<xsl:if test="@size">