This guide will help you set up a local development environment for this Jekyll site with fast reload times.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install rbenv
echo 'eval "$(rbenv init -)"' >> ~/.zshrc
source ~/.zshrc
rbenv install 3.2.2
rbenv global 3.2.2
which ruby # Should show ~/.rbenv/shims/ruby
ruby -v # Should show ruby 3.2.2 or similar
gem install bundler
cd /path/to/project
bundle install
To clean the build folder, run:
bundle exec jekyll clean
bundle exec jekyll serve --livereload --config _config.yml,_config-dev.yml
Your site will be available at:
The “Get Future Updates” modal popup is controlled by a single global flag in _config.yml:
show_newsletter_popup: falseshow_newsletter_popup: trueNotes:
</div> `.
_layouts/default.html (<meta name="show-newsletter-popup" ...>), so it stays consistent in dev and production.If you change any JS under assets/js/ that ships to production, remember production serves the .min.js files; keep them in sync with their non-minified counterparts.
The development configuration includes several optimizations:
The following files/directories are ignored in Git:
_site/ (build output).sass-cache/.jekyll-cache/.jekyll-metadata.bundle/vendor/.DS_Store, etc.).idea/, .vscode/)If you encounter permission errors:
which ruby points to rbenvFor slow build times:
_config-dev.yml--incremental flag for faster rebuilds