Fix permalinks and descriptions on styled feed
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m50s
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m50s
This commit is contained in:
parent
aa862e08ac
commit
b86ceda191
@ -13,7 +13,7 @@
|
||||
<title>{{ metadata.site.name }}</title>
|
||||
<subtitle>{{ metadata.site.description }}</subtitle>
|
||||
<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>
|
||||
<id>{{ metadata.site.url }}</id>
|
||||
<author>
|
||||
|
@ -12,6 +12,7 @@ eleventyImport:
|
||||
<title>{{ metadata.site.name }}</title>
|
||||
<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="alternate" type="text/html" />
|
||||
<description>{{ metadata.site.description }}</description>
|
||||
<language>{{ metadata.site.language }}</language>
|
||||
{%- for post in collections.posts | reverse %}
|
||||
|
@ -38,13 +38,13 @@ eleventyExcludeFromCollections: true
|
||||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ch">
|
||||
<h1><xsl:value-of select="rss/channel/title"/>'s Web Feed Preview</h1>
|
||||
<p>This RSS feed provides the latest posts from <xsl:value-of select="rss/channel/title"/>'s blog.
|
||||
<xsl:template match="rss/channel">
|
||||
<h1><xsl:value-of select="title"/>'s Web Feed Preview</h1>
|
||||
<p>This RSS feed provides the latest posts from <xsl:value-of select="title"/>'s blog.
|
||||
|
||||
<a class="head_link" target="_blank">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="atom:link[@rel='alternate']/@href"/>
|
||||
<xsl:value-of select="link"/>
|
||||
</xsl:attribute>
|
||||
Visit Website →
|
||||
</a>
|
||||
|
@ -15,7 +15,7 @@ eleventyImport:
|
||||
<title>{{ metadata.site.name }}</title>
|
||||
<subtitle>Posts tagged #{{ tag }}</subtitle>
|
||||
<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>
|
||||
<id>{{ metadata.site.url }}</id>
|
||||
<author>
|
||||
|
Loading…
Reference in New Issue
Block a user