Add rss feed as alternate link

Properly mark the rss feed link.
This commit is contained in:
Daniel Siepmann 2021-02-12 10:14:42 +01:00
parent 6f1f36aaea
commit d8eb401e5b
2 changed files with 15 additions and 1 deletions

View file

@ -23,3 +23,17 @@ plugin.tx_seo {
} }
} }
} }
page {
headerData {
10 = TEXT
10 {
wrap = <link rel="alternate" title="RSS Feed of all blog posts" type="application/rss+xml" href="|" />
typolink {
parameter = t3://page?uid=1
additionalParams = &type=1533906435&sitemap=rssFeedAllBlogPosts
returnLast = url
}
}
}
}

View file

@ -1,7 +1,7 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" <html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true"> data-namespace-typo3-fluid="true">
<nav> <nav>
<a href="{f:uri.page(pageUid: 1, pageType: 1533906435, additionalParams: {sitemap: 'rssFeedAllBlogPosts'})}">RSS Feed</a> <a rel="alternate" title="RSS Feed of all blog posts" type="application/rss+xml" href="{f:uri.page(pageUid: 1, pageType: 1533906435, additionalParams: {sitemap: 'rssFeedAllBlogPosts'})}">RSS Feed</a>
<a rel="me" href="https://fosstodon.org/@daniels">at Mastodon</a> <a rel="me" href="https://fosstodon.org/@daniels">at Mastodon</a>
<a href="https://gitea.daniel-siepmann.de/danielsiepmann">My Gitea</a> <a href="https://gitea.daniel-siepmann.de/danielsiepmann">My Gitea</a>
<f:for each="{pages}" as="page"> <f:for each="{pages}" as="page">