Posts Tagged “ios”

Generating Jekyll posts using Drafts and Working Copy »

I put together a script that will take a draft, grab the title and body and then prompt you for front matter data before sending the completed post off to Working Copy. It’s specific to my site, and purposes, but it should be fairly straightforward and easy to adapt to your needs.

When you first run the action, it’ll ask you for your repo name, posts path and Working Copy x-callback-url token. This info will be stored in Drafts and used to write out the correct file.

Site categories and tags are expected to be space delimited and are split out and mapped over to parse them into the proper format.

Post dates are pre-populated with the current date and that same date is combined with the draft file to generate the file name that’s specified when first running the action.