How to Deploy Slides on Github Pages

Use reveal.js to make magic happen

Posted by S.L on June 15, 2018

It’s cool to have your keynote display in your blog, Github Pages has the ability to make this happen integrated with reveal.js. Follow steps bellow and you can enjoy your slides on your blog too, just like me.

Build from Scratch

$ git clone
$ cd reveal.js
$ rm -rf .git
$ git init
$ git remote add origin
$ git add .
$ git commit -m "Initial commit"
$ git push -u origin master

Creating Branch

$ git branch gh-pages
$ git push origin gh-pages

All the updated files must be merged from master to gh-pages(the name can not be changed)

The url is built from the following pattern:



本文首次发布于 S.L’s Blog, 作者 @stuartlau ,转载请保留原文链接.