Skip to content

Instantly share code, notes, and snippets.

@mookjp
Created September 20, 2012 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mookjp/3756049 to your computer and use it in GitHub Desktop.
Save mookjp/3756049 to your computer and use it in GitHub Desktop.
Script generating mynt template with date
#!/bin/sh
# Generate mynt template file with filename.
# The argument should be the title of the article.
filename=`date +%Y-%m-%d`-$1.md
touch $filename
cat <<_EOT_ > $filename
---
layout: post.html
title:
tags: []
---
_EOT_
# generated text
echo Generated: $filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment