Commits

Andrey Vlasovskikh committed 56d1cbb

Don't use relative references without host name in Atom feed

  • Participants
  • Parent commits 8f095b1

Comments (0)

Files changed (1)

File doc/feed.atom

 <?xml version="1.0" encoding="UTF-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom">
  <title>Obraz</title>
- <id>{{ site.url }}/</id>
+ <id>{{ site.url }}{{ site.baseurl }}/</id>
  <updated>{{ site.time.isoformat() + 'Z' }}</updated>
  <author>
    <name>Andrey Vlasovskikh</name>
  </author>
- <link rel="self" href="{{ site.baseurl }}/feed.atom"/>
- <link rel="alternate" href="{{ site.baseurl }}/"/>
+ <link rel="self" href="{{ site.url }}{{ site.baseurl }}/feed.atom"/>
+ <link rel="alternate" href="{{ site.url }}{{ site.baseurl }}/"/>
  {% for post in site.posts | batch(5) | first %}
    <entry>
      <title>{{ post.title }}</title>
      <id>{{ site.url }}{{ post.id }}</id>
-     <link rel="alternate" href="{{ site.baseurl }}{{ post.url }}"/>
+     <link rel="alternate" href="{{ site.url }}{{ site.baseurl }}{{ post.url }}"/>
      <updated>{{ post.date.isoformat() + 'Z' }}</updated>
      <content type="xhtml">
        <div xmlns="http://www.w3.org/1999/xhtml">{{ post.content }}</div>