1
0
Fork
You've already forked website
0

Style web feed #58

Merged
robinmetral merged 2 commits from pretty-feed into main 2024年08月16日 11:34:58 +02:00
robinmetral commented 2024年08月16日 11:19:33 +02:00 (Migrated from github.com)
Copy link

The feed structure and styles are intentionally kept minimal.

Based on:

Benefits:

  • possibility to add an intro about feeds for people who land on /feed.xml
  • human-readable list of feed items

Drawbacks:

  • according to pretty-feed, browsers won't automatically open the feed in the default newsreader. I think this is fine, because people who already have a newsreader should hopefully know how to add a feed by URL
  • had to serve the feed with specific headers (done in Cloudflare Pages via the _headers file), otherwise according to pretty-feed Safari won't recognize the document
  • had to duplicate some of the template's head into the XSL stylesheet (title, CSS import, color scheme meta tag...). This could technically be reused with templating... but I don't think I want to add .xsl to brut as a valid page extension
The feed structure and styles are intentionally kept minimal. Based on: - Darek Kay's [RSS styling blog post](https://darekkay.com/blog/rss-styling/) - the [pretty-feed RSS stylesheet](https://github.com/genmon/aboutfeeds/blob/main/tools/pretty-feed-v3.xsl) (especially the comment about required headers) Benefits: - possibility to add an intro about feeds for people who land on `/feed.xml` - human-readable list of feed items Drawbacks: - according to pretty-feed, browsers won't automatically open the feed in the default newsreader. I think this is fine, because people who already have a newsreader should hopefully know how to add a feed by URL - had to serve the feed with specific headers (done in Cloudflare Pages via the _headers file), otherwise according to pretty-feed Safari won't recognize the document - had to duplicate some of the template's `head` into the XSL stylesheet (title, CSS import, color scheme meta tag...). This could technically be reused with templating... but I don't think I want to add .xsl to brut as a valid page extension
cloudflare-workers-and-pages[bot] commented 2024年08月16日 11:34:12 +02:00 (Migrated from github.com)
Copy link

Deploying robinmetral with Cloudflare Pages Cloudflare Pages

Latest commit: 8ba187d
Status: Deploy successful!

View logs

## Deploying robinmetral with &nbsp;<a href="https://pages.dev"><img alt="Cloudflare Pages" src="https://user-images.githubusercontent.com/23264/106598434-9e719e00-654f-11eb-9e59-6167043cfa01.png" width="16"></a> &nbsp;Cloudflare Pages <table><tr><td><strong>Latest commit:</strong> </td><td> <code>8ba187d</code> </td></tr> <tr><td><strong>Status:</strong></td><td>&nbsp;✅&nbsp; Deploy successful!</td></tr> <tr><td><strong>Preview URL:</strong></td><td> <a href='https://0c9c6977.robinmetral.pages.dev'>https://0c9c6977.robinmetral.pages.dev</a> </td></tr> <tr><td><strong>Branch Preview URL:</strong></td><td> <a href='https://pretty-feed.robinmetral.pages.dev'>https://pretty-feed.robinmetral.pages.dev</a> </td></tr> </table> [View logs](https://dash.cloudflare.com/?to=/:account/pages/view/robinmetral/0c9c6977-21a2-4007-87ba-5f8b0e58de3c)
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
robinmetral/website!58
Reference in a new issue
robinmetral/website
No description provided.
Delete branch "pretty-feed"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?