Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.262 kB
#!/bin/bash
# creates an empty post dir/file
slug=$(date +%Y-%m-%d)
slug="$slug-$2"
# cd to cat dir, so it exists
cd ./src/entries/$1
mkdir $slug
touch ./$slug/content.md
cat <<EOF > ./$slug/content.md
title: $2
---
EOF
echo "Created ./src/entries/$1/$slug"
Jump to Line
Something went wrong with that request. Please try again.