Assign date on blog entries

This commit is contained in:
Bob Mottram 2016-09-09 09:41:51 +01:00
parent 3605c1fd76
commit 4d6970bc80
No known key found for this signature in database
GPG Key ID: 0452CC7CEA982E38
1 changed files with 3 additions and 1 deletions

View File

@ -62,10 +62,12 @@ function view_blog {
}
function new_blog {
DATESTR=$(date "+%Y-%m-%d %H:%M:%S")
echo $'Blog Post Title' > ~/.new-blog-entry
echo $'###############' >> ~/.new-blog-entry
echo '' >> ~/.new-blog-entry
echo $':date: 2020-01-01' >> ~/.new-blog-entry
echo $":date: ${DATESTR}" >> ~/.new-blog-entry
echo $":author: $(toxid --showuser)" >> ~/.new-blog-entry
echo $':category: default' >> ~/.new-blog-entry
echo $':tags: blog, tag' >> ~/.new-blog-entry