- Checkout the
gh-pages
branch. - mkdir
_layouts
- move
index.html
to_layouts
- edit
_layouts/index.html
replace the the inner html of the contents section with{{content}}
- make new file
index.md
- Paste markdown content of automatic page generator into
index.md
prepend the following to
index.md
--- layout: index ---
- create
_config.yml
include the following in
_config.yml
:markdown: kramdown kramdown: auto_ids: true
this step is to match github's markdown syntax
add & commit changes, and then push branch back to github.
Now you can simply edit index.md
from the gh-branch in your github source browser and it will update using jekyll automatically and not mess with anything in your gh-branch.
You can also make more items editable in the layout using place holder {{page.varname}}
and then adding varname:your text
to the header of your index.md
.