Skip to content

Billbastos/jekyll-training

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Installation

Ruby

\curl -sSL https://get.rvm.io | bash -s stable
rvm list known
rvm install "ruby-2.4.2"
ruby -v
rvm use ruby-2.4.2 --default

Optional:

In case of installation error run this command befrore install again

xcode-select --install

OR

softwareupdate --list
softwareupdate --install <product name>

OR

$ rm -rf /Library/Developer/CommandLineTools
xcode-select --install

OR

rvm install "ruby-2.2.5"
rvm use ruby-2.2.5 --default 
# sudo rvm osx-ssl-certs update all

For more information access: Jekyll Installation Guide

Jekyll

gem install jekyll bundler

Creating a new Jekyll project

jekyll new [site-name]

Serving the website

# First time 
cd/[site-name]
bundle exec jekyll serve

# If it's not the first time running the server
jekyll serve

# To have access to the _drafts folder
jekyll serve --draft

Installing a new Theme

  • Select a theme on Rubygems and search for jekyll-theme
  • Copy the name of the theme
  • Go over Gemfile and add the line below
  • gem "[theme-name]"
  • on the Terminal, run bundle install
  • Head over the _config.yml file and change the theme variable adding the new theme name
  • start jekyll running bundle exec jekyll serve

Working with variables

About

Personal Blog

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors