-
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
Feature: Page to help site owners to promote their feed #8
Comments
On formatting RSS feeds:
|
Maybe instead of having an XSLT file site owners could link to AboutFeeds and provide the URL for the feed as a query param so it could be rendered nicely here? |
As as experiment, I've styled the RSS feed on my own blog. Here's how it looks: Some quirks, in no particular order:
To deactivate the browser's auto-open functionality, these HTTP Response headers must be set:
(Based on this blog post: How to style RSS feed (Just Lepture).] |
I really like the simple layout and presentation 👍 Did you test to see if the XSLT file will be applied if its served from a remote domain using appropriate CORS headers? I think that might work? However you then have the downside of having to host and serve that file so you're trading off easy updates with centralisation, although maybe a good CDN could help. |
From what I've read, there's no way of working around this. It requires a tweak to the security settings, or it's unreliable. A shame! |
This is a great idea! I've added your XSLT file to my feeds, which you can get to from here: The only change I've made—and I'd suggest this in general—is removing the hardcoded If you think the image is really needed, maybe a data-URL is the way to go? |
I think the logo is important: it builds familiarity with a common symbol, and it distinguishes the feed page from the main website (which might look quite similar). What do you think of inline SVG? The original SVG file is linked here. |
Oh yeah, inline SVG would work! |
Here's a little wrinkle that I discovered after trying to get this working on my own site... The officially correct Content Type for RSS feeds is When I changed it to This is using Chrome on macOS. Firefox only ever wants to download |
@philgyford yes, this is tricky. Have a look at the required HTTP headers further up this thread. It looks like Feels like it'll be good to get this XSLT to a point where the copy etc all makes sense, and then offer a hosted solution, as described in #22. |
@adactio ok, check out my blog feed now! It uses inline SVG. XSLT is here: http://interconnected.org/home/static/styles/pretty-feed-v2.xsl I've also changed "Recent Posts" -> "Recent Items" because I would like this XSLT to be generic to wherever there is a feed, and so it's better to err on the side of terminology expressed in the underlying protocol. |
The inline SVG is working a treat! I've rolled it out on my site now too. The mime-type issue is a real head-scratcher though. :-( |
Indeed. I was happy to learn from the above discussion that browsers actually support XSLT, so an XML file can be made human-readable in browsers by adding a single line to it, and I’d be eager to use this myself. But if obtaining this behaviour requires setting the Content-Type header to Either way, it seems like a bad practice to misrepresent the content type. I suppose the real solution would be for browsers to interpret |
Neat idea! I tried to implement my own version here: https://larlet.fr/david/log/ (with my own CSS, trying to keep consistency with the probable entry page). A screenshot for the posterity: One thing I was frustrated with though: Firefox does not support I guess it would be possible to render the feed itself using another unescaped format (like |
Problem: Web feeds are hard to discover for users (whether the site has a feed and, if it does, where that feed is).
This page should include a list of ideas would help when attracting users who don't yet have a newsreader installed.
Candidate ideas...
feed:
or not?)The text was updated successfully, but these errors were encountered: