This repository has been archived on 2026-05-27. You can view files and clone it, but cannot push or open issues or pull requests.
HELYX-OS-Personal/assets/xslt/rss.xslt
2016-01-20 14:39:48 -06:00

47 lines
1.6 KiB
HTML

---
layout: xml-style
title: "RSS Feed (Styled)"
sitemap:
exclude: true
rootMatcher: '/rss'
disclaimer: 'This <a href="https://en.wikipedia.org/wiki/RSS" target="_blank">RSS feed</a> is meant to be used by <a href="https://en.wikipedia.org/wiki/Template:Aggregators" target="_blank">RSS reader applications and websites</a>.'
---
<header class="t30 row">
<p class="subheadline"><xsl:value-of select="channel/description" disable-output-escaping="yes" /></p>
<h1>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="channel/link" />
</xsl:attribute>
<xsl:value-of select="channel/title" disable-output-escaping="yes" />
</xsl:element>
</h1>
</header>
<ul class="accordion row" data-accordion="">
<xsl:for-each select="channel/item">
<li class="accordion-navigation">
<xsl:variable name="slug-id">
<xsl:call-template name="slugify">
<xsl:with-param name="text" select="guid" />
</xsl:call-template>
</xsl:variable>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="concat('#', $slug-id)"/></xsl:attribute>
<xsl:value-of select="title"/>
<br/>
<small><xsl:value-of select="pubDate"/></small>
</xsl:element>
<xsl:element name="div">
<xsl:attribute name="id"><xsl:value-of select="$slug-id"/></xsl:attribute>
<xsl:attribute name="class">content</xsl:attribute>
<h1>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="link"/></xsl:attribute>
<xsl:value-of select="title"/>
</xsl:element>
</h1>
<xsl:value-of select="description" disable-output-escaping="yes" />
</xsl:element>
</li>
</xsl:for-each>
</ul>