This repository has been archived on 2025-03-28. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coryd.dev-eleventy/src/posts/2018/generating-jekyll-posts-using-drafts-and-working-copy.md

1.4 KiB

date title description tags
2018-04-22 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.
iOS
JavaScript
automation

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.