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/atom.xslt
2016-01-20 14:39:48 -06:00

48 lines
1.7 KiB
HTML

---
layout: xml-style
title: "Atom Feed (Styled)"
sitemap:
exclude: true
rootMatcher: '/atom:feed'
stylesheetAttributes: 'xmlns:atom="http://www.w3.org/2005/Atom"'
disclaimer: 'This <a href="https://en.wikipedia.org/wiki/RSS" target="_blank">Atom 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="atom:subtitle" disable-output-escaping="yes" /></p>
<h1>
<xsl:element name="a">
<xsl:attribute name="href">
<xsl:value-of select="atom:id" />
</xsl:attribute>
<xsl:value-of select="atom:title" />
</xsl:element>
</h1>
</header>
<ul class="accordion row" data-accordion="">
<xsl:for-each select="atom:entry">
<li class="accordion-navigation">
<xsl:variable name="slug-id">
<xsl:call-template name="slugify">
<xsl:with-param name="text" select="atom:id" />
</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="atom:title"/>
<br/>
<small><xsl:value-of select="atom:updated"/></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="atom:id"/></xsl:attribute>
<xsl:value-of select="atom:title"/>
</xsl:element>
</h1>
<xsl:value-of select="atom:content" disable-output-escaping="yes" />
</xsl:element>
</li>
</xsl:for-each>
</ul>