Assign date on blog entries
This commit is contained in:
parent
3605c1fd76
commit
4d6970bc80
|
@ -62,10 +62,12 @@ function view_blog {
|
||||||
}
|
}
|
||||||
|
|
||||||
function new_blog {
|
function new_blog {
|
||||||
|
DATESTR=$(date "+%Y-%m-%d %H:%M:%S")
|
||||||
|
|
||||||
echo $'Blog Post Title' > ~/.new-blog-entry
|
echo $'Blog Post Title' > ~/.new-blog-entry
|
||||||
echo $'###############' >> ~/.new-blog-entry
|
echo $'###############' >> ~/.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 $":author: $(toxid --showuser)" >> ~/.new-blog-entry
|
||||||
echo $':category: default' >> ~/.new-blog-entry
|
echo $':category: default' >> ~/.new-blog-entry
|
||||||
echo $':tags: blog, tag' >> ~/.new-blog-entry
|
echo $':tags: blog, tag' >> ~/.new-blog-entry
|
||||||
|
|
Loading…
Reference in New Issue