I created a wonderful GitHub Pages website for my little project, and I added some other pages into the gh-pages branch.
My problem is that, everytime I regenerate
gh-pages branch._layoutsindex.html to _layouts_layouts/index.html replace the the inner html of the contents section with {{content}}index.mdindex.mdprepend the following to index.md
---
layout: index
---
_config.ymlinclude 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.