This Jekyll template is designed to work with pjax. Quick instructions:
- Build your Jekyll site as normal
- Do what you will with your site that's now in the
The important bits
This is the layout that's used to render the content for a page without the header and footer chrome.
This is where the HTML snippets, called by pjax and inserted into the designated element, are stored.
This will tell the server to use the snippets instead of the full pages when the HTTP_X_PJAX header is present. Otherwise, the pages are loaded as normal.
How to use this
After you've setup your Jekyll blog, run this script as you might normally run Jekyll. It will go through all of the pages, copy them to the snippets folder and replace the layout in the front matter with "snippets" so that they're rendered appropriately. Once this is done it will run Jekyll, creating the site the in
_site folder as normal, and copy the
.htaccess file there.