33 lines
762 B
Plaintext
33 lines
762 B
Plaintext
Don't have a proper name for it yet, but I want to make a helper script for jekyll.
|
|
|
|
It should ask a series of questions and create the file in the correct place
|
|
|
|
|
|
|
|
Jekyll helper
|
|
|
|
Add or edit post?
|
|
If edit:
|
|
grab all of the posts, put them into an array, print 10 at a time (newest first) with corresponding numbers (1-10)
|
|
let the user select a number to edit that post
|
|
else:
|
|
|
|
YYYY-MM-DD-name-of-post.md
|
|
|
|
date: [todays-date]
|
|
title:
|
|
filetype: [md]
|
|
|
|
layout [post]:
|
|
categories:
|
|
tags:
|
|
|
|
Possibly have some sort of config file that remembers the post directory and default editors.
|
|
|
|
What language though?
|
|
Ruby? (fits with jekyll I suppose)
|
|
python? (I could, but I don't want to deal with python/ruby stupidites)
|
|
lua? (sounds good)
|
|
clisp? (might be interesting)
|
|
|