Live data from Hacker News

Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

news.ycombinator.com

1–10 of 17 posts

Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

#1
I need to build a simple website to share a project that I have, that evolves around advocating for some social change, and involves open source code.

My initial thought was to use a simple website builder like Wix or squarespace, and include a forum plugin to try and create a community.

The main reason I thought about this instead of wordpress is because I do not want the hassle of having to update the code every now and then. These website builders are very secure, as far as I know.

However, I stumbled upon the option of hosting a static website on github pages, using jekyll, and using github discussions as a forum.

Can anyone opine on whether that's a good idea? Specifically, can I be very confident that there is no security flaw, and that I have no requirement to update my code, as long as it's hosted on github pages?

Any advice and comment welcome, thanks!

Re: Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

#6
For hassle free website/pages, I've been really liking https://gohugo.io cause there aren't dependencies or complex setups/installs. The template system had a bit of a learning curve.

Netlify and Cloudflare also have free hosting tiers you can deploy with.

https://www.netlify.com https://www.cloudflare.com

Re: Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

#7
post #5
post #3

yes that's a good solution, a lot of people do it.

Ok, thanks. And it should be very secure, even if I never update it, right? Github pages automatically updates gems for you?

I don't think so- I think it makes a pull request with updated gems that you have to approve.

Re: Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

#9
I have found Jekyll on GitHub to be a pretty good solution overall. I put this Makefile in the git repo to make my workflow simple:

https://gist.github.com/jasone/b0208286b44208b705156fdf046ca...

The one issue I'm frustrated with is that syntax highlighting for code blocks depends on GitHub's blessing:

https://github.com/github/linguist/issues/2598

For example, this page from my blog highlights OCaml code, but not the language I'm developing (Hemlock):

https://branchtaken.com/blog/2021/11/15/string-formatting-in...

Given the low likelihood of Hemlock sweeping the software world before this becomes a critical presentation issue, I'm probably going to switch my publication workflow to pre-generate html.

Re: Ask HN: Is Jekyll on GitHub a good solution for hosting a website?

#10
post #5
post #3

yes that's a good solution, a lot of people do it.

Ok, thanks. And it should be very secure, even if I never update it, right? Github pages automatically updates gems for you?

It’s a static page, what kind of securities are you worried about ?
Post reply on HN