Add jekyll-hook to deployment methods.

Port of #2617 to the master branch.