Jekyll Rake Boilerplate

screenshot of Jekyll Rake Boilerplate

A small rakefile for common Jekyll tasks.

Overview

The Jekyll Rake Boilerplate is a practical tool designed for anyone who utilizes the Jekyll static site generator. This package simplifies a variety of tasks—such as site generation, previewing, post creation, and deployment—making it a must-have for developers and content creators alike. Whether you're a seasoned Jekyll user or just starting out, this boilerplate allows you to manage your content efficiently and effectively without the hassle of setting up custom scripts from scratch.

In addition to its user-friendly design, the Jekyll Rake Boilerplate is purposefully crafted to be "messy," which encourages users to take only the elements they find useful. This flexibility is perfect for those who want to tailor their workflow to their specific needs while benefiting from a robust set of functions.

Features

  • Create Posts Easily: Use rake post["Title"] to generate new posts in the _posts directory, complete with a date-stamped filename based on your provided title.

  • Draft Management: The rake draft["Title"] command allows you to create new drafts in the _drafts directory, streamlining your writing process.

  • Publishing Made Simple: The rake publish task makes it easy to move drafts into the _posts directory, appending the current date and presenting you with draft options for selection.

  • Page Creation: By executing rake page["Title","path/to/folder"], you can effortlessly create new pages, aiding in site expansion and organization.

  • Site Generation: The basic rake build command generates your entire site, preparing it for viewing or further editing.

  • Live Preview and Monitoring: With the rake watch command, you can continuously monitor changes in your site, while rake preview opens it directly in your default browser for immediate viewing.

  • Seamless Deployment: Quickly deploy your site to a remote git repository using rake deploy["Commit message"], which automatically builds the site before pushing it to the repository.

  • Efficient Transfers: The rake transfer command uses either robocopy or rsync to migrate your site to a remote host or local git repository, ensuring that all content is up to date post-build.