Fix permalinks and descriptions on styled feed
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m50s

This commit is contained in:
Lewis Dale 2024-04-11 07:20:59 +01:00
parent aa862e08ac
commit b86ceda191
4 changed files with 7 additions and 6 deletions

View File

@ -13,7 +13,7 @@
<title>{{ metadata.site.name }}</title> <title>{{ metadata.site.name }}</title>
<subtitle>{{ metadata.site.description }}</subtitle> <subtitle>{{ metadata.site.description }}</subtitle>
<link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self"/> <link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self"/>
<link href="{{ metadata.site.url }}"/> <link href="{{ metadata.site.url }}" rel="alternate" />
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated> <updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.site.url }}</id> <id>{{ metadata.site.url }}</id>
<author> <author>

View File

@ -12,6 +12,7 @@ eleventyImport:
<title>{{ metadata.site.name }}</title> <title>{{ metadata.site.name }}</title>
<link>{{ metadata.site.url }}</link> <link>{{ metadata.site.url }}</link>
<atom:link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self" type="application/rss+xml" /> <atom:link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self" type="application/rss+xml" />
<atom:link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="alternate" type="text/html" />
<description>{{ metadata.site.description }}</description> <description>{{ metadata.site.description }}</description>
<language>{{ metadata.site.language }}</language> <language>{{ metadata.site.language }}</language>
{%- for post in collections.posts | reverse %} {%- for post in collections.posts | reverse %}

View File

@ -38,13 +38,13 @@ eleventyExcludeFromCollections: true
</html> </html>
</xsl:template> </xsl:template>
<xsl:template match="ch"> <xsl:template match="rss/channel">
<h1><xsl:value-of select="rss/channel/title"/>'s Web Feed Preview</h1> <h1><xsl:value-of select="title"/>'s Web Feed Preview</h1>
<p>This RSS feed provides the latest posts from <xsl:value-of select="rss/channel/title"/>'s blog. <p>This RSS feed provides the latest posts from <xsl:value-of select="title"/>'s blog.
<a class="head_link" target="_blank"> <a class="head_link" target="_blank">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="atom:link[@rel='alternate']/@href"/> <xsl:value-of select="link"/>
</xsl:attribute> </xsl:attribute>
Visit Website &#x2192; Visit Website &#x2192;
</a> </a>

View File

@ -15,7 +15,7 @@ eleventyImport:
<title>{{ metadata.site.name }}</title> <title>{{ metadata.site.name }}</title>
<subtitle>Posts tagged #{{ tag }}</subtitle> <subtitle>Posts tagged #{{ tag }}</subtitle>
<link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self"/> <link href="{{ permalink | absoluteUrl(metadata.site.url) }}" rel="self"/>
<link href="{{ metadata.site.url }}"/> <link href="{{ metadata.site.url }}" rel="alternate" />
<updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated> <updated>{{ collections.posts | getNewestCollectionItemDate | dateToRfc3339 }}</updated>
<id>{{ metadata.site.url }}</id> <id>{{ metadata.site.url }}</id>
<author> <author>