Skip to content

Instantly share code, notes, and snippets.

@salomvary
Created February 24, 2016 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salomvary/f92f2dcc53f75a3531e1 to your computer and use it in GitHub Desktop.
Save salomvary/f92f2dcc53f75a3531e1 to your computer and use it in GitHub Desktop.
Bootstrapping custom GitHub pages
git checkout --orphan gh-pages
git rm -rf .
git show master:README.md > README.md
cat > index.html <<END
---
---
<!doctype html>
<body>
{% capture readme %}{% include_relative README.md %}{% endcapture %}
{{ readme | markdownify }}
</body>
END
git add index.html README.md
git commit -m 'Update GitHub pages'
git push origin gh-pages
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment