This guide explains how to configure URLs for the Zer0-Mistakes Jekyll theme in different hosting scenarios.
The URL configuration has been simplified to automatically handle different hosting environments:
https://username.github.io/repository-name/https://your-custom-domain.com/http://localhost:4000/repository-name/_config.yml (Production)Main configuration file used for production builds and GitHub Pages deployment.
_config_dev.yml (Development)Development overrides that are merged with the main config when running locally.
For standard GitHub Pages hosting at username.github.io/repository-name/:
_config.yml:
custom_domain: "" # Leave empty for GitHub Pages
url: "https://bamr87.github.io"
baseurl: "/zer0-mistakes"
Development URLs:
http://localhost:4000/zer0-mistakes/https://bamr87.github.io/zer0-mistakes/For hosting with a custom domain like zer0-mistakes.com:
_config.yml:
custom_domain: "zer0-mistakes.com" # Your custom domain
url: "https://zer0-mistakes.com"
baseurl: "" # Empty for root domain hosting
Development URLs:
http://localhost:4000/https://zer0-mistakes.com/For GitHub Pages with a custom domain (CNAME file):
_config.yml:
custom_domain: "zer0-mistakes.com" # Your custom domain
url: "https://zer0-mistakes.com"
baseurl: "" # Empty when using custom domain
# Using Docker (Recommended)
docker-compose up
# Or using local Jekyll
bundle exec jekyll serve --config _config.yml,_config_dev.yml
# Using Docker
docker-compose run --rm jekyll jekyll build --config _config.yml
# Or using local Jekyll
bundle exec jekyll build --config _config.yml
If migrating from the previous complex URL configuration:
domain and domain_exturl_testportfoliodg_porthttps://zer0-mistakes.com for full site URLhttp://localhost:4000/zer0-mistakes/ (with trailing slash)baseurl matches your repository nameurl and baseurl settings as described abovepublic_folder setting in configFor more information, see the Jekyll documentation on configuration.