Using Jekyll for your website21 Dec 2017 #Git #Hobbies #Professional
Jekyll is a simple, blog aware, static site generator. It takes a template directory […] and spits out a complete, static website suitable for serving with Apache or your favorite web server. This is also the engine behind GitHub Pages, which you can use to host your project’s page or blog right here from GitHub.
Find out more by visiting the project on GitHub.
Jekyll works best on Linux/Unix, or MacOS. It’s possible to install on Windows but it’s more difficult and prone to error. This guide assumes your on Linux, adjust accordingly
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB \curl -sSL https://get.rvm.io | bash -s stable --ruby source ~/.profile rvm install ruby --latest
- Install NodeJS
sudo apt-get install nodejs
Now you can locally build and checkout this site for example
First clone this site
git clone https://github.com/skulumani/skulumani.github.io.git
bundlerand all the
gem install bundler bundle install
Build and view a local copy of the website
bundle exec jekyll serve
localhost:4000in your browser to see a local copy of my site!
You can host your page very easily using the Github Pages service. It’s free and offers a simple way to show off your work. The only downside is that many of the very useful Jekyll gems are disabled on Github.
Another approach, and the one that this site is using, is to use Netlify. It also offers a free web hosting service, but gives you more flexibility and features.
For example, Netlify will set up your site with a free Let’s Encrypt certificate, and even automatically update it without any hassle!