Created
February 24, 2016 20:36
-
-
Save salomvary/f92f2dcc53f75a3531e1 to your computer and use it in GitHub Desktop.
Bootstrapping custom GitHub pages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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