aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2024-03-08 03:23:54 +0800
committer简律纯 <i@jyunko.cn>2024-03-08 03:23:54 +0800
commit625f877c718608f27c8e1e8701c6c84e6954a7d9 (patch)
treeb2099138cff967350678a1564de68b95f59e88ef
parent8a05b41bb38e35db0b2b20688143a4cb49d47122 (diff)
downloadipm-server-625f877c718608f27c8e1e8701c6c84e6954a7d9.tar.gz
ipm-server-625f877c718608f27c8e1e8701c6c84e6954a7d9.zip
feat(site): reset download link with substring-after()
-rw-r--r--index.xsl14
1 files changed, 4 insertions, 10 deletions
diff --git a/index.xsl b/index.xsl
index 3bffdfd..b797e6d 100644
--- a/index.xsl
+++ b/index.xsl
@@ -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