Skip to content

Commit b40196c

Browse files
Krinklesoulgalore
andauthored
blog: Improve RSS feed (#4544)
* blog: Point rss discovery to canonical URL Update discovery link to the current canonical URL for where the blog RSS feed lives. The redirect is kept for compatibility. * blog: Fix broken self URL and improve title * Fix 404 from https://www.sitespeed.io/feed/blog.xml to `https://www.sitespeed.io/feed.xml` which can confuse feed readers by updating their link but then losing the subscription to an error. * Shorten title and start with "Sitespeed.io" so that it sorts well alongside many other blogs in a feed reader under the default suggested name. --------- Co-authored-by: Peter Hedenskog <[email protected]>
1 parent b52f83e commit b40196c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{site.baseurl}}/img/ico/sitespeed.io-72.png">
4242
<link rel="apple-touch-icon-precomposed" href="{{site.baseurl}}/img/ico/sitespeed.io-57.png">
4343
<link rel="shortcut icon" href="{{site.baseurl}}/img/ico/sitespeed.io.ico">
44-
<link type="application/atom+xml" href="https://www.sitespeed.io/feed/index.xml" rel="alternate" />
44+
<link type="application/atom+xml" href="https://www.sitespeed.io/feed/blog.xml" rel="alternate" />
4545

4646
<style>
4747
{% include css/default.css %}

docs/feed/blog.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<?xml version="1.0" encoding="UTF-8"?>
44
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
55
<channel>
6-
<title>The sitespeed.io blog</title>
6+
<title>Sitespeed.io Blog</title>
77
<description>The latest news from the sitespeed.io world.</description>
88
<link>https://www.sitespeed.io</link>
9-
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
9+
<atom:link href="{{ site.url }}/feed/blog.xml" rel="self" type="application/rss+xml" />
1010
{% for post in site.posts limit:10 %}
1111
<item>
1212
<title>{{ post.title | xml_escape }}</title>

0 commit comments

Comments
 (0)