I made myself a simple web interface to create new Jekyll posts. This is actually the first post that I’ve written in it, so let’s hope this works right. It’s rare for me to be away from my primary machine, but I thought it would be nice to have a web interface to create a new post from my phone…and I kind of just wanted to see if it would work.
You can see the new post form on my site, though you won’t be able to submit the form—or at least, it won’t do anything if you try to. I’m taking advantage of Github’s new file interface, so one needs permissions on my Github pages repo to create a new post.
The actual form doesn’t look half bad, because like any true developer, I threw Bootstrap at the problem to make it look at least a little bit OK.
If you want to try it yourself, grab
new.html from that repo, and change the
action attribute on the
Update: The new file form in Github is a bit weird. If you don’t change either the filename or the file content, it will throw an error when you submit: “A file with the same name already exists. Please choose a different name and try again.” I’ve submitted a bug report to Github, but in the meantime, you just need to make a change, like add and then remove a newline at the end of the post.