Skip to content

Instantly share code, notes, and snippets.

@mookjp mookjp/gist:3756049
Created Sep 20, 2012

Embed
What would you like to do?
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
You can’t perform that action at this time.