Install Ruby and development tools:
sudo apt update
sudo apt install ruby-full build-essential zlib1g-devConfigure gem installation directory (to avoid using sudo):
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcInstall Jekyll and Bundler:
gem install jekyll bundlerInstall project dependencies:
bundle installUsing Make (recommended):
make runOr directly with bundle:
bundle exec jekyll serve --livereload --incremental --watchThe site will be available at http://localhost:4000
make build- Build the sitemake clean- Remove generated filesmake install- Install dependencies
-
Add the plugin to your
Gemfile:group :jekyll_plugins do gem "plugin-name", "~> version" end
-
Add the plugin to
_config.yml:plugins: - plugin-name
-
Install the new gem:
bundle install
-
Restart the Jekyll server (Ctrl+C and run the serve command again)