I tried but when I open my pages it give me a blank page
A link to your repo on GitHub would be helpful for troubleshooting.
This is a good resource by GitHub for setting up a local version of Jekyll that will give you a better idea of what might be going wrong.
https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/