diff options
| author | 2024-03-08 03:23:54 +0800 | |
|---|---|---|
| committer | 2024-03-08 03:23:54 +0800 | |
| commit | 625f877c718608f27c8e1e8701c6c84e6954a7d9 (patch) | |
| tree | b2099138cff967350678a1564de68b95f59e88ef | |
| parent | 8a05b41bb38e35db0b2b20688143a4cb49d47122 (diff) | |
| download | ipm-server-625f877c718608f27c8e1e8701c6c84e6954a7d9.tar.gz ipm-server-625f877c718608f27c8e1e8701c6c84e6954a7d9.zip | |
feat(site): reset download link with substring-after()
| -rw-r--r-- | index.xsl | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -16,16 +16,10 @@ <xsl:for-each select="//packages/package"> <LI><I> <xsl:value-of select="@name" /> - </I> [<xsl:element - name="a"> - <xsl:attribute name="href"> - <xsl:value-of select="@url" /> - </xsl:attribute> - download </xsl:element> |<xsl:element name="a"> - <xsl:attribute name="href"> - <xsl:value-of select="@webpage" /> - </xsl:attribute> - source </xsl:element>] <BR /> id: <tt> + </I> [<a + href="https://ipm.hydroroll.team{substring-after(@url, 'https://raw.githubusercontent.com/HydroRoll-Team/ipm-server/gh-pages')}"> + download </a> |<a href="{@webpage}"> + source </a>] <BR /> id: <tt> <xsl:value-of select="@id" /> </tt>; size: <xsl:value-of select="@size" />; author: <xsl:value-of select="@author" />; copyright: <xsl:value-of |
