-
Notifications
You must be signed in to change notification settings - Fork 13
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
XSL for presentation of Atom feeds #26
Comments
I just made a much lighter version without all CSS rules that were not used and using simple CSS instead of a bunch of utility classes: Would you find it useful here? |
Works nicely for my Jekyll generated atom feed at https://jay.gooby.org/feed.xml |
I was about to write my own when I found this issue. It works flawlessly for my Atom feed, thank you @nhoizey! Would it be possible to merge your Atom XSL with this repository? Maybe we could have a |
Just stumbled upon this issue randomly: I recently made an XSL that works for both RSS and Atom: https://gist.github.com/Dan-Q/149579c66c938b566c45beefcf5914a4 The trick is to have a It's probably reasonably feasible to do similar things with the title etc. |
I tried to use
pretty-feed-v3.xsl
for my Atom feeds, but it didn't work at all because Atom and RSS have different XML structures.I tried to build an alternative version for Atom feeds, but I don't know if my specific Atom feeds match the common use case.
I also don't know if it would be possible to share a single XSL stylesheet for both RSS and Atom.
Here's my version:
https://github.com/nhoizey/nicolas-hoizey.com/blob/main/src/assets/pretty-atom-feed-v3.xsl
Here's how it looks:
https://nicolas-hoizey.com/feeds/all.xml
A few notes:
target="_blank"
attributes for accessibility<xsl:template>
to ease maintenanceI can make a PR if you want to iterate over it.
The text was updated successfully, but these errors were encountered: