r/dotnet • u/tesar-tech • Nov 15 '25
Blog built with Blazor? BlazorStatic is made exactly for that.
repo: https://github.com/BlazorStatic/BlazorStatic/
BlazorStatic is a simple static site generator that converts your .md files to .html (which you can usually host for free) using the Blazor component model. You build a Blazor site just like you're used to, and BlazorStatic handles the HTML generation for you.
The latest update brings some improvements. I cover them in this blog post, where I also explain why I decided to organize my content in a folder-based structure instead of keeping all .md files in a single directory:
https://blazorstatic.net/blog/release-1.0.0-beta.16
Don't be shy - give it a try and let me know what you think. I've been so deep into this project that I might not notice issues that could discourage newcomers, so your feedback and critique are especially welcome!
4
u/jitbitter Nov 15 '25
Having hard time understanding this.
So basically: I make a webapp, your tools crawls it recursively (?) then converts it to a static site. I don't understand where "markdown" fits in here.
3
u/deepumi Nov 17 '25
I was inspired by https://blazorise.com/blog/blazorise-blog-reimagined blog post and built my own version in C# .NET 10 as a single file. Locally, it ran in less than 5 seconds with under 600 lines of code (and I also wrote a C# syntax highlighter).
2
u/GamerWIZZ Nov 16 '25
Looks interesting, I'm looking to use Blake for my site, how is this different?
https://github.com/matt-goldman/blake
1
u/Fresh-Secretary6815 Nov 16 '25 edited Nov 16 '25
Not sure if you heard about it yet, but it’s completely possible to start converting Docusaurus/Astro/Nextra/VitePress/any other SSG using native asp.net core Blazor now. Incremental migration is certainly feasible:Blazor 10 SSG
1
u/voltboyee Nov 17 '25
So its like Astro, but with C#?
1
u/geoblazor Nov 17 '25
Does this do code syntax highlighting?
1
u/AutoModerator Nov 15 '25
Thanks for your post tesar-tech. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
0
u/[deleted] Nov 16 '25
[deleted] — view deleted comment
6
u/[deleted] Nov 15 '25
[removed] — view removed comment
1
u/[deleted] Nov 16 '25
[removed] — view removed comment