Skip to content

Instantly share code, notes, and snippets.

@lsdlab
Last active November 23, 2016 14:27
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 lsdlab/957cc8887ef20514e27d to your computer and use it in GitHub Desktop.
Save lsdlab/957cc8887ef20514e27d to your computer and use it in GitHub Desktop.
Pelican new blog shell script
#! /bin/zsh
cd content/
fileName=`date "+%Y-%m-%d"`
currentTime=`date "+%Y-%m-%d %H:%M:%S"`
cat>${fileName}.md<<EOF
Title:
Date: ${currentTime}
Modified: ${currentTime}
Category:
Tags:
Slug:
Authors: Chen Jian
Summary:
EOF
echo "Create ~/Document/BreakWire/content/${fileName}.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment