summaryrefslogtreecommitdiff
path: root/feed.xslt.xml
diff options
context:
space:
mode:
authormayx <mayx@outlook.com>2025-04-28 07:33:18 +0200
committermayx <mayx@outlook.com>2025-04-28 07:33:18 +0200
commitd01d9119def9ba4b5991272284b81d6077d018a0 (patch)
tree23ac8498f37721c610c65150cbebb06bf2e355fb /feed.xslt.xml
parentd0ce029b941fc8dc6de9d32cd8942e6dccdbdfc4 (diff)
Update 4 files
- /feed.json - /_layouts/default.html - /rss.xml - /feed.xslt.xml
Diffstat (limited to 'feed.xslt.xml')
-rw-r--r--feed.xslt.xml19
1 files changed, 18 insertions, 1 deletions
diff --git a/feed.xslt.xml b/feed.xslt.xml
index 96e9e74..58e3109 100644
--- a/feed.xslt.xml
+++ b/feed.xslt.xml
@@ -59,7 +59,7 @@ https://nicolas-hoizey.com/feeds/all.xml
</h1>
<h2><xsl:value-of select="atom:feed/atom:title"/></h2>
<p><xsl:value-of select="atom:feed/atom:description"/></p>
- <p>This preview only shows titles, but the actual feed contains the full content.</p>
+ <p>This preview only shows titles and summaries, but the actual feed(Atom) contains the full content.</p>
<a>
<xsl:attribute name="href">
<xsl:value-of select="/atom:feed/atom:link[2]/@href"/>
@@ -69,6 +69,7 @@ https://nicolas-hoizey.com/feeds/all.xml
</header>
<h2>Recent Items</h2>
<xsl:apply-templates select="atom:feed/atom:entry" />
+ <xsl:apply-templates select="/rss/channel/item" />
<footer>
<small><p>Made with ❤ by Mayx</p></small>
</footer>
@@ -92,4 +93,20 @@ https://nicolas-hoizey.com/feeds/all.xml
<p><xsl:value-of select="atom:summary"/></p>
</div>
</xsl:template>
+ <xsl:template match="/rss/channel/item">
+ <div class="item">
+ <h3>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="link"/>
+ </xsl:attribute>
+ <xsl:value-of select="title"/>
+ </a>
+ </h3>
+ <small class="gray">
+ Published at <xsl:value-of select="pubDate" />
+ </small>
+ <p><xsl:value-of select="description"/></p>
+ </div>
+ </xsl:template>
</xsl:stylesheet> \ No newline at end of file