Host Your Own Blog with Gitlab and Netlify
brainfood.xyz
brainfood.xyz
[2]: https://github.com/netlify-templates/victor-hugo
Edit: formatting
I think most of the time, "host your own" means you can do more or less whatever you want with your site. Rather than putting your content somewhere like medium or Facebook or Instagram where you are in a closed and controlled system.
Now I just need to start writing
I'm using Rstudio's Distill framework[2], writing RMarkdown, hosting on Gitlab and publishing on Netlify.
Netlify is dead simple to setup, even the domain name and DNS re-direction. I'm also using one of their contact forms.
But if you're going to maintain a blog as a set of markdown files, it'a worth considering using Netlify CMS (a web-based CMS for managing markdown files in a git repo).
This is especially the case if you don't use a command line or git often, e.g. if you're not a developer or sysadmin.
A good starter repo for a blog based on Gatsby, git and Netlify CMS:
https://github.com/alxshelepenok/gatsby-starter-lumen
I used the above for my blog, with only minor changes:
One way to set something like this up is to use the gatsby template I linked, which can be used without knowing what React, GraphQL (or even Gatsby) are.
But if you're using Netlify for hosting, you'll need the 'Netlify Identity' service to allow your users to log in. The free tier has a limit of 5 users (or 1000 if you allow open sign-ups).
Does your neighbourhood non-profit have more than 5 non-developers who need that front-end to add/edit pages?
I have been running a bunch of generated static pages via GH (and now GitLab) and never seen any disadvantage, but don't take me wrong - I am always learning :)
https://docs.gitlab.com/ee/ci/
Deploy a Blog site with Gitlab pages and Cloudflare https://blog.zenggyu.com/en/post/2019-02-08/deploying-a-blog...
Netlify was just a lot quicker to get started. It automatically compresses images, js, etc., if you tell it to. It automatically deploys branches to a special subdomain, so you can share previews of branches with other people. Also, though I haven't used that yet, it has this "Functions" thing that would allow you to add dynamic behaviour to your static website.
However:
> The site will have free TLS and IPv6
Unfortunately, the DNS provider (dns1) does not expose DNS over IPv6. Therefore your site is exposed over IPv6 by Netlify, but it will not be reachable by a (probably non-existant) IPv6-only client.
Try:
dig AAAA dns1.p04.nsone.net
But thanks for pointing this out!
bash-4.4$ dig @dns1.p04.nsone.net AAAA brainfood.xyz +short 2604:a880:400:d1::8b0:4001
EDIT: Feel free to downvote but please answer. TFA does not answer it.
WordPress is good, but some see it as overkill.
It's good to want to know why some people want to do X, but try to ask it in a way that doesn't make a negative assumption about the people taking a certain approach.
I feel like there is a LOT in this comment that is reading much more into a question that very likely are not even there, to take the position of scolding someone just because their inquiry was delivered in brevity.
And then I learned that there is a niche (compared to 30% WP) of technical people that have their content in GitHub anyway and profit from simple deployment through netlify. It just fits their workflow. I had the typical business user (another blog post said everyone!) in mind and I don't see them to be able to handle git so it sounded very far fetched which was reflected in the tone.
It's hard to give good advice in a tone that isn't paternalistic, and I should get better at doing that. Sometimes you just want to ask a genuine question without somebody questioning your phrasing.
What prompted me to give out advice is "Feel free to downvote but please answer". I don't believe the comment deserves a downvote, but I assume (and it may be, as you put it, reading too much into it) that some downvotes come from people who are tired of seeing the attitude I describe in my reply (https://news.ycombinator.com/item?id=7650799#7651343).
It's a case of greedy matching /why would you do/.
For the many many static sites that I throw out with either Jekyll or just plain HTML/CSS/JS, I know that once I drop them to something like S3 + CloudFront fronted by Cloudflare, it will very very unlikely go down.
They all have their time, places and circumstances.
Might as well be a Facebook page.
Why is the youth so adverse to owning their own data?
I don't see any vendor lock in evident in any of this. Plenty of flexibility to both move your git code to your own self hosted git, and quite easy to host it on your own webserver on DO or wherever instead of Netlify.
This is free (domain aside), doesn't require managing upgrades and presumably has some redundancy.
SEO experts and social media marketers will tell you that nothing beats Wordpress, but that's not true I've seen plenty of static sites that are much more engaging, work faster and rank higher when they post good content often.
[1] https://github.com/john-bokma/tumblelog [2] http://plurrrr.com/
We do it for our company website. Markdown makes it easy to have a pull-request-based workflow for reviews. It’s neat and uses the tools we as developers are used to. Another advantage is that the end result is static pages. We can literally host them anywhere, though we’re currently using netlify for convenience. They don’t need security patches either.
Does that make it superior to hosted WordPress? For our needs: yes. For other people’s needs? Don’t know.
I think the appeal is that you have complete control over your site/blog and should you choose to somehow monetise the content, e.g., adding singups and subscriptions to premium content or even ads, you can have complete control. With a combination like this you start at 0$/m for ever (or at least until Netlify stops offering free services) and take it from there. I probably won't do this for a travel-blog but its nice to have the choice and to be honest I wanted to try out a combination of the tech mentioned above and see how far I can take it for 0$.
I still have an old blog on Wordpress (http://pyscience.wordpress.com) and its done very well but I never liked the fact that Wordpress just sticks ads wherever it wants to unless I get the premium subscription.
Here is my review of popular static site generators plus hosting: https://medium.com/@tarasmatsyk/how-to-kick-off-a-blog-in-2-...
Here's some that are for sure legit and been around for a long time though (does not imply necessarily that providers not listed are not legit though):
Ramnode BuyVM Securedragon Lowendspirit
I personally use BuyVM and Netcup.eu.
Great dev experience, great user experience.
I use it with github. wanted to use github pages but was tired with having to use submodules in order for it to recognize the docs folder.
Only last week I had to figure out why a file called btmp in /var/log was so huge.
Then I discovered fail2ban