What better way to inaugurate my blog than to explain how to set up something similar?
This blog uses a commonly used tool and service: Jekyll and Github Pages.
To quote their website:
"Jekyll is a simple, blog-aware, static site generator. It takes a template directory containing raw text files in various formats, runs it through a converter (like Markdown) and our Liquid renderer, and spits out a complete, ready-to-publish static website suitable for serving with your favorite web server."
It is widely used by the tech-blogging community and more importantly, is extremely easy to set up with Github pages !
Github Pages allows any Github user to host a static website directly from a Github repository, all free of charge.
The website you are currently viewing is one of them, and so is my personal website !
On this blog post we'll focus solely on the deployment of a Jekyll blog, but I might write about how to deploy an Angular4 website in the near future.
username with your Github username (so in my case, I have inputed
git clone https://github.com/username/username.github.io
cd username.github.io echo "Hello World" > index.html
git add --all git commit -m "Initial commit" git push -u origin master
And that's all you need ! Open up your browser of choice and go to
gem install jekyll bundler jekyll new my-blog cd my-blog bundle exec jekyll serve
Everything is explained here, but in short:
You must use a gem (a Ruby package) created by the Github Pages team.
Add it to your
source "https://rubygems.org" gem "github-pages", group: :jekyll_plugins
All we have to do is push the contents of our Jekyll repository to our
To do so (in your Jekyll blog repository):
# initialize the local directory as Git repository git init # add the files in our Jekyll repository git add . # commit them git commit -m "Initial blog commit" # don't forget to replace the remote URL with your own git remote add origin https://github.com/username/username.github.io # check if the remote URL is correct git remote -v # finally, push everything to the master branch git push origin master
And voilà ! Your Jekyll blog should be up and running, you can now start blogging at your hearts content.
It might take a short while to have everything set up, but it's a rather simple process that is very similar to what you have just achieved. Don't forget to check out Jekyll's official documentation for more information on theming.
Github Pages and Jekyll are two very cool free tools that should be used by anyone who wishes to set up a personal blog, website or project. There is a lot of documentation out there to help you achieve your goals, like setting up a domain and custom domain.
I hope this post has been of help to some of you,
Until next time,