Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (13 sloc) 222 Bytes
#!/bin/sh
if [ -d '_posts' ] ; then
cd _posts
fi
post=`date +%Y-%m-%d`-`echo $1 | sed 's/[^a-zA-Z0-9]/-/g' | tr '[A-Z]' '[a-z]'`.md
echo "---
layout: post
title: $1
categories: []
tags: []
---
" > $post
gedit $post
You can’t perform that action at this time.