Create your own Free Blog Site
There are a lot of blogging platfroms like wordpress and blogger. Personally, I was never satisfied with the flexibility of these platforms. So I always wanted a free option to create and maintain blogs.
We can create and maintain our own blog by using site Netlify. It is basically a frontend hosting site, with a lot of cool features. It lets us create simple websites free of cost and it provides many advanced features for paid users. To create a blog like the one you are visiting right now for free, we will be using Hexo which is a fast, simple & powerful blog framework.
Visit this link and fork my repository or follow following steps to create a new hexo blog.
Execute following commands in bash to setup hexo and create new blog
For more information visit link, it has all the necessary steps to get you started.
For my convenience i have installed theme hexo-theme-tranquilpeak. It is well documented and support various features. You can choose any theme you want from site. Execute following commands to install theme.
There are number of things you must modify like site URL, Author name, Site title etc. The themes also provide many options to give users flexibility to change things on their blogs. Themes can support various services like analytics, facebook insights etc. Generally settings are to be set in _config.yml file.
In order to get more info on integrated services configuration in hexo-theme-tranquilpeak theme visit this link.
For netlify we need to add our UI on repository, so pick any git client and upload your blog.
For information on creating repository on github fillow link.
Signup and create site using your github. Their wizerd shows three steps, 1 Connect to your git provider, 2 Pick your repository, 3 Build options, and deploy!
we need to provide Build options
And finally set publish directory as “/public”
Note: In my repo i have renamed “hexo-theme-tranquilpeak” theme to “tranquilpeak” so please use your head while copying.
In nepal, there is a company called Mercantile which provides .com.np domains free of cost to nepali citizens. So you can visit this link and fill out the registration form, and wait for two days atleast and you will get email confirmation about the domain registration. You can not choose domain of your own you must go for yournamesurname.com.np only. Other citizens can buy domain from any provider.
Registration process asks for nameserver, in order to access nameserver Goto Domain management->Custom Domain->Add a custom domain. Set your domain, and click “Use Netlify DNS”. After that, you will have three nameserver values, use these to set your nameserver in domain provider’s setting.
You might want to use www version of your domain or vice-versa for that you can add DNS record on Netlify so you can enable HTTPS on your site.
So you can add any one of following two records.
Goto Domain management->HTTPS and click on “Use lets encrypt” or “Set custom certificate”. After a minute or so HTTPS will be enabled.
Goto Domain management->Force HTTPS and click on “Force HTTPS” button.
Now you can use your blog. If you are a developper you can modify your blog for your own good.