My portfolio on GitHub Pages.
Follow the official Jekyll documentation for the installation procedure.
Note 1: On macOS, Homebrew's gem path is different than mentioned in the documentation:
Docs (wrong): $HOME/.gem/ruby/X.X.0/bin:$PATH
Actual: $HOME/.local/share/gem/ruby/3.0.0/bin:$PATHNote 2: When working with Jekyll and having a Ruby version > 3.0.0, you need
to require the gem webrick for starting Jekyll's server. This is only
mentioned here briefly at the bottom:
Jekyll Quickstart.
Note 3: Sometimes bundle update won't work because the gemfile.lock
defines that an older version of bundler that was used in this repo previously.
The easiest way to resolve this is to delete the gemfile.lock and run
bundle install again to install the latest versions of all gems.
Note 4: On Ubuntu, you might need to remove previous Ruby installations via
sudo apt-get remove "ruby*" (note the asterisk).
Regulary check if a new GitHub pages gem is available at
GitHub pages: Dependency versions and
update the line in the Gemfile accordingly. Run bundle install to
install the new version.
After installing Ruby and Jekyll, install all dependencies:
bundle installThen serve the website:
bundle exec jekyll serveAfter closing the repo, install all gems first:
bundle installTo update all gems, run:
bundle updateServe your site on your localhost
bundle exec jekyll serveBuild the site. You will find the output in the _site directory:
bundle exec jekyll buildIf you set a baseurl in the config file, serve your site locally without
baseurl messing up your links:
bundle exec jekyll serve --baseurl ''- Static site generator: Jekyll
- Configuration: GitHub Pages Gem
- HTML/CSS framework: HTML5 Boilerplate
- Iconfont: Fontello
- Masonry layout helper: Masonry
- Image preloader: Images Loaded