Welcome to Jekyll and GitHub
This is the first experiment in programming websites with Jekyll and GitHub Pages
The procedure used for creating this website is as follows:
- jekyll new ga_blog (or whatever) Create jekyll site
1.1 bundle exec jekyll serve (to create a localhost jekyll server to test content)
- http://localhost:4000
- ctrl-C to exit server
- cd ga_blog
- modify _config.yml (nano _config.yml)
- add to baseurl “ga_blog” (for custom hosting replace this value with your full custom url here)
- and save
- Create repository on github with the name of your site folder. In this case its ga_blog
- DON’T iniitialize the site on github. Just create it.
- note the url in the github start new repository site:
- git init
- git checkout -b gh-pages
- git status (to list the files to be pushed up to gh-pages branch)
- git add . (period means all files)
- git commit -m “initial commit”
- git remote add origin https://github.com/netbob/ga_blog.git (from the github repository create page)
- git push origin gh-pages (note for me, it asked for my username and password. I am using 2fa so I had to create a new token (an app password aws it were for this to work)
- Confirm on github gh-pages branch has the files you just pushed up.
- go to the gh-pages branch and click on settings and scroll down to
- GitHub Pages
- GitHub Pages is designed to host your personal, organization, or project pages from a GitHub repository.
- Your site is published at https://netbob.github.io/ga_blog/
- Confirm website is active on github under your username. Cool.
- After making website changes:
- git add . (or got add
- git commit -m “optional comment”
- git push origin gh-pages
- git add . (or got add