Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Add RSS Browser Preview#25

Draft
fbievan wants to merge 1 commit into
cjtheham:mainfrom
fbievan:xmlpreview
Draft

Add RSS Browser Preview#25
fbievan wants to merge 1 commit into
cjtheham:mainfrom
fbievan:xmlpreview

Conversation

@fbievan

@fbievan fbievan commented May 22, 2024

Copy link
Copy Markdown
Contributor

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)

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
@benjaminbhollon

Copy link
Copy Markdown
Contributor

Don't know hugo but you could probably use a template to generate the XSL file.

@fbievan

fbievan commented May 22, 2024

Copy link
Copy Markdown
Contributor Author

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.

@cjtheham

Copy link
Copy Markdown
Owner

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants