-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add xml:base attribute to the feed tag #43
Conversation
We might need to add it per post, if a post contains relative links. |
Done via d863e8a. Good call. |
@@ -33,7 +33,9 @@ | |||
<updated>{{ post.date | date_to_xmlschema }}</updated> | |||
|
|||
<id>{{ post.id | prepend: url_base | xml_escape }}</id> | |||
<content type="html">{{ post.content | markdownify | xml_escape }}</content> | |||
<content type="html" xml:base="{{ url_base | xml_escape }}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be post.url
rather than just url_base
, since that is what links would be relative to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once again, you're absolutely right.
👍 |
Add xml:base attribute to the feed tag
🎉 |
Per @pathawks over in #36 (comment), and per the Atom spec:
I believe this fixes #22.
/cc @holman and @bkeepers, as this should finally fix the question that started this all