π§ Troubleshooting Guide
π§ Troubleshooting Guide
Common Setup Issues
Bundle Install Fails (Permission Issues)
If you see Bundler requires sudo access to install, try these solutions:
Option 1: Use Bundler with User Installation
bundle config set --local path 'vendor/bundle'
bundle install
Option 2: Use rbenv or RVM (Recommended)
# Install rbenv (macOS)
brew install rbenv ruby-build
# Install a Ruby version
rbenv install 3.1.0
rbenv global 3.1.0
# Then try bundle install again
bundle install
Option 3: Use System Ruby with User Gems
gem install --user-install bundler jekyll
bundle config set --local path ~/.gem
bundle install
Site Not Building
Check Jekyll Version Compatibility
# Check current versions
bundle exec jekyll --version
bundle exec gem list github-pages
# Update if needed
bundle update github-pages
Clear Jekyll Cache
bundle exec jekyll clean
rm -rf _site .jekyll-cache
bundle exec jekyll build
Changes Not Appearing on GitHub Pages
- Wait 5-10 minutes - GitHub Pages takes time to build
- Check Repository Settings - Ensure Pages is enabled
- Verify File Names - Check for typos in filenames
- Check YAML Front Matter - Ensure proper syntax
Markdown Rendering Issues
Common YAML Front Matter Errors
# β Wrong
---
title: My Title Without Quotes
date: 2024-1-1
---
# β
Correct
---
title: "My Title With Quotes"
date: 2024-01-01
---
Special Characters in Titles
# β Wrong
title: My Title: A Subtitle
# β
Correct
title: "My Title: A Subtitle"
Images Not Displaying
Check File Paths
# β Wrong

# β
Correct (from root)

# β
Correct (relative)

Optimize Image Sizes
- Keep images under 1MB
- Use appropriate formats (JPG for photos, PNG for graphics)
- Consider using image compression tools
Local Development Issues
Port Already in Use
# Use different port
bundle exec jekyll serve --port 4001
# Or kill existing process
lsof -ti:4000 | xargs kill -9
Live Reload Not Working
# Use with live reload
bundle exec jekyll serve --livereload
# Or force polling
bundle exec jekyll serve --force_polling
Git Issues
Large File Size Errors
# Remove large files from history
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch large-file.pdf' --prune-empty --tag-name-filter cat -- --all
# Or use Git LFS for large files
git lfs track "*.pdf"
git add .gitattributes
Merge Conflicts
# Reset to remote version
git fetch origin
git reset --hard origin/master
# Or resolve manually and commit
git add .
git commit -m "Resolve merge conflicts"
Theme-Specific Issues
Custom CSS Not Loading
// In assets/css/main.scss, ensure front matter exists:
---
# Only the main Sass file needs front matter
---
@charset "utf-8";
@import "minimal-mistakes/skins/dark";
@import "minimal-mistakes";
// Your custom styles here
Navigation Not Updating
- Check
_data/navigation.ymlsyntax - Ensure proper indentation (spaces, not tabs)
- Restart Jekyll server after changes
Performance Issues
Slow Build Times
# In _config.yml, limit posts in development
limit_posts: 10
# Exclude unnecessary files
exclude:
- node_modules
- "*.sublime-project"
- "*.sublime-workspace"
- vendor
- .bundle
- .sass-cache
Large Site Size
- Optimize images
- Remove unused files
- Use Jekyll Archives for pagination
Getting Help
Check These First
- Jekyll Build Errors: Run
bundle exec jekyll build --verbose - GitHub Pages Status: Check GitHub Pages status page
- Browser Cache: Hard refresh (Ctrl+Shift+R / Cmd+Shift+R)
- Syntax Validation: Use online YAML validators
Resources
- Jekyll Documentation: https://jekyllrb.com/docs/
- GitHub Pages Help: https://help.github.com/en/github/working-with-github-pages
- Minimal Mistakes Issues: https://github.com/mmistakes/minimal-mistakes/issues
- Academic Pages Community: https://github.com/academicpages/academicpages.github.io/issues
Common File Extensions
.md- Markdown files (content).html- HTML files (layouts, includes).yml- YAML configuration files.scss- Sass stylesheets.rb- Ruby scripts
Testing Checklist
Before publishing changes:
- Local build works:
bundle exec jekyll build - Local server works:
bundle exec jekyll serve - All links work
- Images display correctly
- Mobile responsive
- No console errors
Still having issues? Create an issue on GitHub or contact: bprelipcean_at_info.uaic.ro
