Skip to content
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

No channel tag #6

Closed
wyager opened this issue Aug 12, 2017 · 6 comments
Closed

No channel tag #6

wyager opened this issue Aug 12, 2017 · 6 comments

Comments

@wyager
Copy link

wyager commented Aug 12, 2017

I think there needs to be a <channel> tag under the <rss> tag. I think it should be a short change to renderRssDocument. Something like

renderRssDocument d = tag "rss" (attr "version" . pack . showVersion $ d^.documentVersionL) $ tag "channel" mempty $ do
  textTag "title" $ d^.channelTitleL
@wyager
Copy link
Author

wyager commented Aug 12, 2017

After adding the <channel> tag manually, it seems to mostly pass the W3C feed validator except a few bits and bobs that I'm pretty sure most readers wouldn't have a problem with. (Like having an empty skipDays instead of eliding the tag altogether, I guess?)

@k0ral
Copy link
Owner

k0ral commented Aug 13, 2017

Fixed:

  • rendering <channel> tag in c0e3757
  • eliding empty <skipDays> and <skipHours> tags in 5c76ef6

Can you please let me know about the "bits and bobs" ? :) I'd like to fix as many as I can before making a new release.

@wyager
Copy link
Author

wyager commented Aug 13, 2017

Sure, let me just figure out how to get stack to pull from a git repo...

@wyager
Copy link
Author

wyager commented Aug 13, 2017

Wow, stack is pretty sweet. That was really easy. OK, the only thing the validator doesn't like that isn't my fault (out-of-spec GUID/image too big, which I'll maybe fix later) is https://validator.w3.org/feed/docs/warning/MissingAtomSelfLink.html

The solution here is to let people embed their own attrs in the <rss...> header. I'll go ahead and work on that for a minute and have a PR ready in a bit.

@wyager
Copy link
Author

wyager commented Aug 13, 2017

OK, I'm working on the custom document attrs thing, but in the meantime I'm going to close this issue. Safari, at least, seems to have no problem parsing my feed.

@wyager wyager closed this as completed Aug 13, 2017
@wyager
Copy link
Author

wyager commented Aug 13, 2017

To clarify, I think this is a good place to upload a new version to hackage. The custom attrs stuff will take more time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants