Only show the latest 5 posts
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m54s
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m54s
This commit is contained in:
parent
b86ceda191
commit
435800af35
@ -23,6 +23,7 @@ eleventyImport:
|
||||
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
||||
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
||||
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
||||
<atom:summary>{{ post.content | excerpt }}</atom:summary>
|
||||
<guid>{{ absolutePostUrl }}</guid>
|
||||
</item>
|
||||
{%- endfor %}
|
||||
|
@ -31,7 +31,7 @@ eleventyExcludeFromCollections: true
|
||||
</section>
|
||||
<section>
|
||||
<h2>Recent Items</h2>
|
||||
<xsl:apply-templates select="atom:feed/atom:entry" />
|
||||
<xsl:apply-templates select="atom:feed/atom:entry[position() < 6]" />
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -32,7 +32,7 @@ eleventyExcludeFromCollections: true
|
||||
</section>
|
||||
<section>
|
||||
<h2>Recent Items</h2>
|
||||
<xsl:apply-templates select="rss/channel/item" />
|
||||
<xsl:apply-templates select="//*[local-name()='item'][position() < 6]" />
|
||||
</section>
|
||||
</body>
|
||||
</html>
|
||||
@ -72,7 +72,7 @@ eleventyExcludeFromCollections: true
|
||||
</a>
|
||||
</h3>
|
||||
<p>
|
||||
<xsl:value-of select="description" disable-output-escaping="yes" />
|
||||
<xsl:value-of select="atom:summary" disable-output-escaping="yes" />
|
||||
</p>
|
||||
<small>
|
||||
Published: <xsl:value-of select="pubDate" />
|
||||
|
@ -27,6 +27,7 @@ eleventyImport:
|
||||
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
||||
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
||||
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
||||
<atom:summary>{{ post.content | excerpt }}</atom:summary>
|
||||
<guid>{{ absolutePostUrl }}</guid>
|
||||
</item>
|
||||
{%- endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user