Last active
November 23, 2016 14:27
-
-
Save lsdlab/957cc8887ef20514e27d to your computer and use it in GitHub Desktop.
Pelican new blog shell script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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