Action
Pelican Post
Posted by David Blue,
Last update
almost 3 years ago
- Unlisted
Generate a Pelican-ready Markdown post file with options. By default, the “Summary” metadata field is populated with text selected in the editor at action run.
Steps
-
prompt
promptKey cat
promptTitle Set Category
promptMessage Set case-sensitive post category.
promptButtons OK
includeTextField true
textFieldDefault Meta
includeCancelButton true
-
defineTemplateTag
name pelicancat
template [[cat_text]]
-
prompt
promptKey slug
promptTitle Set Post Slug
promptMessage Set the URL slug of your post. If you include spaces, they will be URL-encoded. (like%20this)
promptButtons OK
includeTextField true
textFieldDefault [[safe_title]]
includeCancelButton true
-
defineTemplateTag
name pelicanslug
template [[slug_text]]
-
prompt
promptKey byline
promptTitle Set Post Author
promptMessage Specify the post's author (byline.)
promptButtons OK
includeTextField true
textFieldDefault includeCancelButton true
-
file
fileNameTemplate [[pelicanslug]].md
folderTemplate template Title: [[display_title]] Date: [[created|%Y-%m-%d %R]] Modified: [[modified|%Y-%m-%d %R]] Category: [[pelicancat]] Tags: [[tags]] Slug: [[pelicanslug]] Authors: [[byline_text]] Summary: [[selection_only]] [[draft]] --- [Local]([[draft_open_url]])
local true
writeType replace
Options
-
After Success Nothing Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.