Editorial Workflows

Jekyll Post

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: This workflow has no description.

Shared by: https://mylesb.ca

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Request Type ?
Title
Type of Post
List (Lines)
Article Simple Bookmark
Multiple Selection
OFF
Show in Popover
OFF
Change Case ?
  • UPPER CASE
  • lower case
  • Title Case
Set Variable ?
Variable Name
postType
Value
Input
Request Title ?
Title
Title
Initial Text
Clipboard
  • Single Line
  • Multiple Lines
Keyboard Options:
Change Case ?
  • UPPER CASE
  • lower case
  • Title Case
Set Variable ?
Variable Name
postTitle
Value
Input
Generate Text ?
Text
postTitle
Run Python Script ?
Source Code
#coding: utf-8
import re
import workflow

action_in = workflow.get_input()

# Generate the output
value = re.sub(r'[^\w\s-]', '', action_in).strip().lower()
action_out = re.sub(r'[-\s]+', '-', value)

workflow.set_output(action_out)
Set Variable ?
Variable Name
postSlug
Value
Input
Create Document ?
Filename
Year: 2001-Month: 01-Day: 01-postSlug.markdown
Content
--- layout: post_postType category: postType title: postTitle date: Year: 2001-Month: 01-Day: 01THour: 01 (24h):Minute: 01:Second: 01 --- %cursor
Open in Editor
ON