Add RSS Browser Preview#25
Conversation
This implments https://codeberg.org/benjaminhollon/benjaminhollon.com/src/branch/main/assets/xsl/rss.xsl, and is a featured RSS Preview... this does not render with the rest of the site, and is instead a static XSL file to avoid further complexity, this is due to the nature of XSL, and not properly parasing HTML into here, thus the footer is not featured, nor is the header. This does however work for most purposes
|
Don't know hugo but you could probably use a template to generate the XSL file. |
I mainly wanted to avoid having to use stuff like https://discourse.gohugo.io/t/sitemap-xsl-not-processable/32674/4 I want to make it modular with the rest of the site, like the header, and footer... however doing this would require rewriting that HTML specifically for this, which defeats the point as a whole. You can make XSL processable in Hugo, however this requires some hacks see https://discourse.gohugo.io/t/sitemap-xsl-not-processable/32674/4, however due to the aforementioned issues, I don't want to do that currently... This XSL file basically serves as something separate from the rest of the hugo site, and I feel like that is the "correct" way to do this for now. The main issue while trying to use partials to include the header and footer is that the headers use data-style, which seemingly is not interpreted correctly by XSL I need to do slightly more research into why that is happening, but for now, this is the way I am doing this personally. Edit: sorry for the post structure, my mind is everywhere right now... I've been working on the site for the whole day. |
|
Going forward, this repo and issue can be found at https://codeberg.org/Freedom-to-Write/hugo-theme-readable. This repo will stay on Github temporarily, but future additions will be found on Codeberg. |
This implements https://codeberg.org/benjaminhollon/benjaminhollon.com/src/branch/main/assets/xsl/rss.xsl, and is a featured RSS Preview... this does not render with the rest of the site, and is instead a static XSL file to avoid further complexity, this is due to the nature of XSL, and not properly parsing HTML into here, thus the footer is not featured, nor is the header. This does however work for most purposes
This does need some more work for the headers and such (Might have to change the system)