Things are about to get a bit meta! A few days ago we talked about how writing in markdown is pretty straight forward, however generating the appropriate front matter for Jekyll, and giving it the correct file name for it to be recognised as a blog can be a little laborious.

Standard Jekyll requires the file to be named as such:

And the YML standard front matter for my Jekyll configuration is along the lines of:

layout: single
author_profile: false
type: pages
title: Blog Post Title
date: YYYY-MM-DDTHH:MM:00+00:00
post_image: /images/posts/post-thumbnail.jpg
permalink: /YYYY/MM/DD/Blog-Post-TITLE
categories: [general]
tags: [NaBloPoMo]
    nav: "blog_sidenav"

As you may have spotted the YYYY, MM and DD values are used repeatedly, and if we are writing the post on the date of the post, then are known by the local system that we are using.

The 'Blog Post Title' is also used several times, in both the markdown file name, the Title of the post, and in the permalink.

Hence, a workflow enabling us to pass in a 'title' and able to utilise the current date, and to re-use this values to automatically form a markdown skeleton for our post, would save us from this dull repeated task.

Enter the Workflow App (for iOS - I'm afraid I've not tried the Android version if there is one). Once I run my app configuration it prompts me for the blog post title:

Workflow app - enter title

And then the following markdown skeleton is generated:

Markdown Skelton

The above screenshot is from 1Writer, and which thanks to its URL Scheme support also automatically names the file in the correct naming convention for Jekyll.... but more on 1Writer tomorrow. For now, let's have a closer look at that Workflow App configuration.

Worflow configuration 1 Worflow configuration 2 Worflow configuration 3 Worflow configuration 4 Worflow configuration 5 Worflow configuration 6

The final touch was to add this workflow as an apparent app on my home screen:

Worflow Home Screen

Workflow app offers sync'ing, and so once I was happy with the result, it instantly became available to use on my iPhone.

If you have workflow app, and you wanted to try this workflow you can access/install it from here (* please read through it thoroughly to make sure you are happy with the results before running!)

Next up, we'll talk about the onward path for using the generated markdown file - but we'll leave that for tomorrow.

Finally, here is a photo of me using this workflow, purely on my ipad, to write this very post on our dining table this afternoon.

Writing on dining table