Page MenuHomeSealhub

RSS channels - ability to define alternative styles (dark mode / desktop / browser / mobile etc)
Closed, ResolvedPublic2 Points

Description

As we cannot use CSS container queries in RSS/Atom feeds, we need to use inline styles. But we need to then choose what version of the layout we serve to the user. One might read the RSS on mobile, and would prefer a once-column view, another might prefer a desktop view.

This task is about adding an ability to define separate RSS/ATOM feeds with the same content, but different inline styles applied.

In application config (https://hub.sealcode.org/diffusion/PLAY/browse/master/src/back/app.ts$55) you could add an rss_variants key that takes an array of modifiers, some of those might be exclusive to each other. The first one of the exclusive pair is the default one:

[["light", "dark"], ["mobile", "desktop"]]

The above would create four variants of the RSS: light+mobile, light+desktop, dark+mobile, dark+desktop.

The variant is passed as a query param to the RSS feed URL and taken into consideration when generating the inline styles for the HTML of each entry.

Details

Tested by
kuba-orlik
Coded by
mates
Reviewed by
kuba-orlik
Action required from
mates

Revisions and Commits

rS Sealious
Restricted Differential Revision

Event Timeline

jenkins-user updated Coded by, added: mates.
jenkins-user updated Action required from, added: mates.
jenkins-user updated Action required from, added: FilipI; removed: mates.
jenkins-user added a subscriber: mates.
jenkins-user updated Action required from, added: mates; removed: FilipI.
mates added a revision: Restricted Differential Revision.Dec 5 2025, 14:50
jenkins-user moved this task from Doing to Review on the Kanban board.
jenkins-user updated Action required from, added: FilipI; removed: mates.
jenkins-user updated Reviewed by, added: kuba-orlik.
jenkins-user moved this task from Review to Ready for testing on the Kanban board.
jenkins-user updated Action required from, added: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak; removed: FilipI.
jenkins-user updated Tested by, added: kuba-orlik.
jenkins-user moved this task from Ready for testing to Ready to land on the Kanban board.
jenkins-user updated Action required from, added: mates; removed: AmeliaB, • Koossa, karolwojtowicz87, brtkuu, prostyfranek, zbartosz, radoptak.