Code for my website, hathix.com. Feel free to borrow relevant parts.
Make sure you have Jekyll installed. Then run:
jekyll serveto preview the site as you edit it
jekyll buildto build the static, deployment-ready site.
To deploy the website, copy the
_site directory to your server or run
deploy.sh, remembering to install duck.sh and to change the FTP URL to that of your own site.