1
0
mirror of https://github.com/aureliendavid/rsspreview.git synced 2025-08-22 11:18:37 +00:00

Fixed Atom feeds without rel="alternate" attributes displayed incorrectly

Also added showing content when present in atom feeds.
This commit is contained in:
apropostech 2018-11-05 15:19:31 +01:00
parent 282ddf29ea
commit 0f3e9fa3f8

View File

@ -41,8 +41,8 @@
<h3>
<xsl:choose>
<xsl:when test="link | atom:link[@rel='alternate']/@href | rss1:link">
<a href="{link | atom:link[@rel='alternate']/@href | rss1:link}" target="_blank">
<xsl:when test="link | atom:link/@href | rss1:link">
<a href="{link | atom:link/@href | rss1:link}" target="_blank">
<span><xsl:value-of select="title | atom:title | rss1:title" /></span>
</a>
</xsl:when>
@ -54,7 +54,7 @@
<div class="lastUpdated"><xsl:value-of select="pubDate | atom:updated | rss1:pubDate" /></div>
</h3>
<div class="feedRawContent">
<xsl:value-of select="description | atom:summary | rss1:description" />
<xsl:value-of select="description | atom:summary | atom:content | rss1:description" />
</div>
<div class="enclosures">
<xsl:for-each select="enclosure | atom:link[@rel='enclosure'] | rss1:enclosure">