←back to thread

116 points vgr-land | 2 comments | | HN request time: 0.396s | source

A few weeks ago a friend sent me grug-brain XSLT (1) which inspired me to redo my personal blog in XSLT.

Rather than just build my own blog on it, I wrote it up for others to use and I've published it on GitHub https://github.com/vgr-land/vgr-xslt-blog-framework (2)

Since others have XSLT on the mind, now seems just as good of a time as any to share it with the world. Evidlo@ did a fine job explaining the "how" xslt works (3)

The short version on how to publish using this framework is:

1. Create a new post in HTML wrapped in the XML headers and footers the framework expects.

2. Tag the post so that its unique and the framework can find it on build

3. Add the post to the posts.xml file

And that's it. No build system to update menus, no RSS file to update (posts.xml is the rss file). As a reusable framework, there are likely bugs lurking in CSS, but otherwise I'm finding it perfectly usable for my needs.

Finally, it'd be a shame if XSLT is removed from the HTML spec (4), I've found it quite eloquent in its simplicity.

(1) https://news.ycombinator.com/item?id=44393817

(2) https://github.com/vgr-land/vgr-xslt-blog-framework

(3) https://news.ycombinator.com/item?id=44988271

(4) https://news.ycombinator.com/item?id=44952185

(Aside - First time caller long time listener to hn, thanks!)

Show context
isuleman ◴[] No.45011184[source]
Lighthouse score 0 .. I wonder what are implications on SEO.
replies(3): >>45011565 #>>45011574 #>>45013066 #
1. vgr-land ◴[] No.45011565[source]
Probably abysmal

Since xslt is built dynamically in the DOM most crawlers don’t build the site and pick up the metadata.

Although I’m not convinced chasing SEO is a useful endeavor any more https://housefresh.com/beware-of-the-google-ai-salesman/

I wonder if AI crawlers would have the same problem and pass over the site

replies(1): >>45012855 #
2. _heimdall ◴[] No.45012855[source]
As long as the LLM crawler fetches the XML in the first place I assume it would be fine. Lighthouse is trying to score the rendered HTML, the LLM just needs to understand what's in the document and it can parse the XML directly.