Is Blazor a Good Choice for a GitHub Pages Portfolio or Blog Site?
Asked by
CleverFox123
Hey everyone, I'm just starting out with front-end development and I'm curious about using Blazor for a personal portfolio or blog that I'd like to host on GitHub Pages. I have a background in C# and want to show that I've learned something new. However, I feel like Blazor might be a bit overkill for a site that's mainly static. I think I can't build the WebAssembly part directly through GitHub Actions, so I'd need to upload a build from my local setup, which seems a bit complicated but I'm okay with getting my hands dirty. Am I on the right track with this approach?
Answers
Blazor is great for enterprise apps, but for a portfolio, it might be too much. Since Iโm not really experienced with GitHub Actions, I canโt say much about that, but it sounds like a good learning project!
Reply to this answer
WebAssembly Blazor could work, but if you're into JavaScript, you might want to check out other options. Personally, for my GitHub Pages blog, I went with 11ty, which is based on JavaScript. It's pretty straightforward and does a good job for static sites. If you're looking for speed, 11ty's build times are quick!
Reply to this answer
Honestly, I wouldnโt recommend Blazor for this. Most sites today lean heavily on JavaScript, and Blazor is kind of a middleman that runs C# code alongside it. You might run into issues with things like local storage being unavailable in Blazor WASM. For a simple portfolio, sticking to HTML and JavaScript is probably the better route. If you want to use a framework, something like React or Vue could suit you better!
Reply to this answer
While Blazor is impressive, it might be overkill for your portfolio. Wasm has a heavy initial load and not the best SEO. If you're aiming for something more straightforward, regular HTML and CSS might be the way to go. But if youโre doing it for fun, then definitely go for it!
Reply to this answer
Do whatever motivates and excites you to write code! Whether itโs Blazor or something else, the learning process is what's most important. 😊
Reply to this answer
Keep in mind that GitHub Pages is strictly for static sites. If you want to use Blazor, there's a repository called BlazorStatic that you could look into for help with that.
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousDev99: I've tried 11ty too, and it worked great! Fast builds, and I heard Astro is gaining traction for its additional features; might be worth checking out!