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>
|
<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>
|
||||||
|
@ -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 %}
|
||||||
|
@ -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 →
|
Visit Website →
|
||||||
</a>
|
</a>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user