Skip to content

Commit fac90b5

Browse files
committed
Use absolute_url instead of base_url + url
1 parent 853674a commit fac90b5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

feed.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ layout: null
66
<channel>
77
<title>{{ site.title | xml_escape }}</title>
88
<description>{{ site.description | xml_escape }}</description>
9-
<link>{{ site.url }}{{ site.baseurl }}/</link>
10-
<atom:link href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" rel="self" type="application/rss+xml"/>
9+
<link>{{ "/" | absolute_url }}/</link>
10+
<atom:link href="{{ "/feed.xml" | absolute_url }}" rel="self" type="application/rss+xml"/>
1111
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
1212
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
1313
<generator>Jekyll v{{ jekyll.version }}</generator>
@@ -16,8 +16,8 @@ layout: null
1616
<title>{{ post.title | xml_escape }}</title>
1717
<description>{{ post.content | xml_escape }}</description>
1818
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
19-
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
20-
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
19+
<link>{{ post.url | absolute_url }}</link>
20+
<guid isPermaLink="true">{{ post.url | absolute_url }}</guid>
2121
{% for tag in post.tags %}
2222
<category>{{ tag | xml_escape }}</category>
2323
{% endfor %}

0 commit comments

Comments
 (0)