Skip to content

Commit 65cc66a

Browse files
committed
Fix baseUrl on rss-feed (cotes2020#259)
1 parent 88c875c commit 65cc66a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

feed.xml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,24 @@ layout: compress
99

1010
{% capture source %}
1111
<feed xmlns="http://www.w3.org/2005/Atom">
12-
<id>{{ site.url }}</id>
12+
<id>{{ "/" | absolute_url }}</id>
1313
<title>{{ site.title }}</title>
1414
<subtitle>{{ site.description }}</subtitle>
1515
<updated>{{ site.time | date_to_xmlschema }}</updated>
1616
<author>
1717
<name>{{ site.author }}</name>
18-
<uri>{{ site.url }}</uri>
18+
<uri>{{ "/" | absolute_url }}</uri>
1919
</author>
20-
<link href="/feed.xml" rel="self" type="application/atom+xml" />
21-
<link href="{{ site.url }}" rel="alternate" type="text/html" />
20+
<link rel="self" type="application/atom+xml" href="{{ page.url | absolute_url }}"/>
21+
<link rel="alternate" type="text/html" hreflang="{{ site.lang | default: 'en' }}"
22+
href="{{ '/' | absolute_url }}"/>
2223
<generator uri="https://jekyllrb.com/" version="{{ jekyll.version }}">Jekyll</generator>
2324
<rights> © {{ 'now' | date: '%Y' }} {{ site.author }} </rights>
2425
<icon>{{ site.baseurl }}/assets/img/favicons/favicon.ico</icon>
2526
<logo>{{ site.baseurl }}/assets/img/favicons/favicon-96x96.png</logo>
2627

2728
{% for post in site.posts limit: 5 %}
28-
{% assign post_absolute_url = site.url | append: post.url %}
29+
{% assign post_absolute_url = post.url | absolute_url %}
2930
<entry>
3031
<title>{{ post.title }}</title>
3132
<link href="{{ post_absolute_url }}" rel="alternate" type="text/html" title="{{ post.title }}" />

0 commit comments

Comments
 (0)