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>
|
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
||||||
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
||||||
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
||||||
|
<atom:summary>{{ post.content | excerpt }}</atom:summary>
|
||||||
<guid>{{ absolutePostUrl }}</guid>
|
<guid>{{ absolutePostUrl }}</guid>
|
||||||
</item>
|
</item>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
@ -31,7 +31,7 @@ eleventyExcludeFromCollections: true
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Recent Items</h2>
|
<h2>Recent Items</h2>
|
||||||
<xsl:apply-templates select="atom:feed/atom:entry" />
|
<xsl:apply-templates select="atom:feed/atom:entry[position() < 6]" />
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
@ -32,7 +32,7 @@ eleventyExcludeFromCollections: true
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h2>Recent Items</h2>
|
<h2>Recent Items</h2>
|
||||||
<xsl:apply-templates select="rss/channel/item" />
|
<xsl:apply-templates select="//*[local-name()='item'][position() < 6]" />
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@ -72,7 +72,7 @@ eleventyExcludeFromCollections: true
|
|||||||
</a>
|
</a>
|
||||||
</h3>
|
</h3>
|
||||||
<p>
|
<p>
|
||||||
<xsl:value-of select="description" disable-output-escaping="yes" />
|
<xsl:value-of select="atom:summary" disable-output-escaping="yes" />
|
||||||
</p>
|
</p>
|
||||||
<small>
|
<small>
|
||||||
Published: <xsl:value-of select="pubDate" />
|
Published: <xsl:value-of select="pubDate" />
|
||||||
|
@ -27,6 +27,7 @@ eleventyImport:
|
|||||||
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
<description>{{ post.templateContent | htmlToAbsoluteUrls(absolutePostUrl) }}</description>
|
||||||
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
<pubDate>{{ post.date | dateToRfc822 }}</pubDate>
|
||||||
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
<dc:creator>{{ metadata.author.name }}</dc:creator>
|
||||||
|
<atom:summary>{{ post.content | excerpt }}</atom:summary>
|
||||||
<guid>{{ absolutePostUrl }}</guid>
|
<guid>{{ absolutePostUrl }}</guid>
|
||||||
</item>
|
</item>
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user