This repo is a template to create more repos for jekyll based repo.
Use this template
-> Create a new repository
.git clone
your repo to your laptop.docker
and chrome browser
sh scripts/localhost.sh --new
jekyll-template
with your repo name (example - my-repo
), this will change below files
docker-compose.yml
- change container_name: jekyll-template
to container_name: my-repo
localhost.sh
- http://localhost:9999/jekyll-template/
to http://localhost:9999/my-repo/
Gemfile
- add gem "webrick"
_config.yml
- update baseurl
as /my-repo
sh scripts/localhost.sh
This site can’t be reached
sh scripts/localhost.sh --stop
Official documentation for jekyll is here
# find process_id using the port
netstat -vanp tcp | grep 9999
# kill the process based on process_id
kill -9 <PROCESS_ID>
git fetch --all -p; git pull; git status;
git merge origin/main;
git push;
This is based on jekyll-theme minima