Basic Setup
Direct Jekyll Usage
The Sandbox theme can be run directly with Jekyll commands:
- Development server with live reload
- Production builds
- Built-in Sass compilation
- Asset processing
Prerequisites
Required software:
- Ruby (version 2.7.0 or higher)
- RubyGems
- Bundler gem
- ImageMagick or Vips (for image processing)
Built-in Features
Sass Processing
Jekyll includes built-in Sass compilation:
- Automatic processing of Sass files
- Production minification
- Source mapping options
- Custom import paths
Image Processing
Manual Image Optimization
Using ImageMagick directly for image processing:
- WebP conversion
- Batch processing
- Image optimization
- Format conversion
Development Workflow
Recommended Steps
Development workflow without Rake:
- Start Jekyll server:
bundle exec jekyll serve --livereload
- Make changes to source files (Sass compiles automatically)
- Process images manually as needed
- Build for production:
JEKYLL_ENV=production bundle exec jekyll build
Troubleshooting
Common Issues
Solutions for frequent problems:
- Sass Compilation Errors: Check
_sass
directory structure - Server Start Issues: Verify port availability
- Build Failures: Check Jekyll environment settings
- Image Processing: Confirm ImageMagick installation
Debugging
Debug Jekyll processes:
- Use verbose mode:
jekyll serve --verbose
- Check build output in
_site
directory - Enable trace mode with
--trace
- Review Jekyll's error messages
Shell Scripts
Automation Scripts
Create shell scripts for common tasks: