Hacker News new | ask | show | jobs
by taigeair 4421 days ago
I use Jekyll and am having an issue with it when I use feedburner. It recommends using {{site.url}} in the markdown and templates.

http://jekyllrb.com/docs/posts/

So, for example, I have {{ site.url}}/radio-surfing

On my site it shows http://www.taigeair.com/radio-surfing/ but on feedburner it becomes http://feeds.feedburner.com/radio-surfing/ in the feed.

Example http://feeds.feedburner.com/taigeair

Does anyone else have this issue? Any suggestions?

1 comments

Is your `site.url` set to `/` ?
it would be my domain

taigeair.com

Looking at your feed, it appears you're not using `site.url` in each post's `<link>` field. The links are all `/url`, not `taigeair.com/url`.

I'm not certain, but your `feed.xml` file probably has `<link>{{ post.url }}</link>`, which should probably be `<link>{{ site.url }}{{ post.url }}</link>`

Thanks for your help. My feed xml has <link>{{ site.url }}{{ post.url }}</link> so I'm not sure what the issue is.

--- layout: none --- <?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ site.name | xml_escape }}</title> <description>{% if site.description %}{{ site.description | xml_escape }}{% endif %}</description> <link>{{ site.url }}</link> <atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" /> {% for post in site.posts %} <item> <title>{{ post.title | xml_escape }}</title> <description>{{ post.content | xml_escape }}</description> <pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate> <link>{{ site.url }}{{ post.url }}</link> <guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid> </item> {% endfor %} </channel> </rss>

Okay I fixed it.

I needed to add this line to the _config.yml

url: http://www.taigeair.com

I just checked the feed and it worked!! Thanks for helping.