This repo is a template to create more repos for jekyll based repo.
- Create new repo using this template
Use this template
->Create a new repository
. git clone
your repo to your laptop.- Open in Editor, ex. Visual Studio Code
- you should have these installed -
docker
andchrome browser
- Run the command in terminal -
sh scripts/localhost.sh --new
- This creates basic folder structure.
- Replace all instances of text
jekyll-template
with your repo name (example -my-repo
), this will change below filesdocker-compose.yml
- changecontainer_name: jekyll-template
tocontainer_name: my-repo
localhost.sh
-http://localhost:9999/jekyll-template/
tohttp://localhost:9999/my-repo/
Gemfile
- addgem "webrick"
_config.yml
- updatebaseurl
as/my-repo
- start server -
sh scripts/localhost.sh
- This will open chrome browser or you can visit localhost:9999/my-repo
- Initially, you will see error page
This site can’t be reached
- after some time when container has started, you will see the site running
- stop server -
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