autotopia xsl: add $baseurl to links

This commit is contained in:
Astro 2019-04-16 15:51:42 +02:00
parent 57aba00b03
commit 5bcd556662

View File

@ -155,7 +155,7 @@
<xsl:with-param name="date" select="@date"/> <xsl:with-param name="date" select="@date"/>
</xsl:call-template> </xsl:call-template>
</date> </date>
<a href="https://www.c3d2.de/{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html" class="url"> <a href="{$baseurl}/news/{substring-before(substring-after($newsfile, 'content/'), '.xml')}.html" class="url">
<xsl:value-of select="@title"/> <xsl:value-of select="@title"/>
</a> </a>
</h3> </h3>
@ -188,7 +188,7 @@
<xsl:value-of select="speaker"/> <xsl:value-of select="speaker"/>
</td> </td>
<td> <td>
<a href="{str:replace(str:replace($file, 'content/autotopia/', ''), '.xml', '.html')}"> <a href="{$baseurl}{str:replace(str:replace($file, 'content/autotopia/', ''), '.xml', '.html')}">
<xsl:for-each select="title"> <xsl:for-each select="title">
<span lang="{@lang}"> <span lang="{@lang}">
<xsl:value-of select="."/> <xsl:value-of select="."/>