Hacker News

C# static site generator

by @pSYoniK

I have been working on a static site generator. I've used Hugo and Jekyll before but everytime there is something you have to learn or get used to and they never map 1 to 1 to the flat structure of a simple blog for example. It's a few classes of C# right now that parses a folder and auto generates the navigation, links, titles and summary off of the folder/file structure for the 1st level and then subsequent depth is mapped to individual items in the list view not on the nav bar (although I did that too, it looked weird with higher depth). So if you have a folder with 3 files and 2 additional folder you get 5 links in the nav bar, 3 content pages and 2 list pages. No other setup is needed. No llm written code, but I used deepseek v4 flash to ask various questions and get samples of some things. I forgot just how much depth there is to exploring a simple problem. Loving it!

Discover more builders

Builderlust is an endless, joyful scroll of real projects people are shipping right now. Get the app to keep finding your next spark of inspiration.

📱 Coming soon to iOS & AndroidOpen in the app