Udate xslt

This commit is contained in:
2024-05-07 21:31:09 +10:00
parent 0b79872cbe
commit d728b137bb
2 changed files with 11 additions and 11 deletions

View File

@@ -21,18 +21,18 @@
</nav>
<div class="container-md px-3 py-3 markdown-body">
<header class="py-5">
<h2><xsl:value-of select="/channel/name"/></h2>
<p><xsl:value-of select="/channel/description"/></p>
<h2><xsl:value-of select="/rss/channel/name"/></h2>
<p><xsl:value-of select="/rss/channel/description"/></p>
<a class="head_link" target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="/channel/link"/>
<xsl:value-of select="/rss/channel/link"/>
</xsl:attribute>
Visit Website &#x2192;
</a>
</header>
<h2>Alternate feeds</h2>
<xsl:for-each select="/channel/alternate_feed">
<xsl:for-each select="/rss/channel/alternate_feed">
<div class="pb-5">
<a target="_blank">
<xsl:attribute name="href">
@@ -45,7 +45,7 @@
</xsl:for-each>
<h2>Recent Items</h2>
<xsl:for-each select="/channel/item">
<xsl:for-each select="/rss/channel/item">
<div class="pb-5">
<h3 class="mb-0">
<a target="_blank">

View File

@@ -21,18 +21,18 @@
</nav>
<div class="container-md px-3 py-3 markdown-body">
<header class="py-5">
<h2><xsl:value-of select="/channel/name"/></h2>
<p><xsl:value-of select="/channel/description"/></p>
<h2><xsl:value-of select="/rss/channel/name"/></h2>
<p><xsl:value-of select="/rss/channel/description"/></p>
<a class="head_link" target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="/channel/link"/>
<xsl:value-of select="/rss/channel/link"/>
</xsl:attribute>
Visit Website &#x2192;
</a>
</header>
<h2>Alternate feeds</h2>
<xsl:for-each select="/channel/alternate_feed">
<xsl:for-each select="/rss/channel/alternate_feed">
<div class="pb-5">
<a target="_blank">
<xsl:attribute name="href">
@@ -45,7 +45,7 @@
</xsl:for-each>
<h2>Recent Items</h2>
<xsl:for-each select="/channel/item">
<xsl:for-each select="/rss/channel/item">
<div class="pb-5">
<xsl:value-of select="title" disable-output-escaping="yes"/>
@@ -63,4 +63,4 @@
</body>
</html>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>