@@ -0,0 +1,616 @@
+import os%0Aimport sys%0Aimport time%0A%0Adef creat_newpost(post_name):%0A%09# current_time = time.time()%0A%09post_url = '-'.join(post_name.split())%0A%09post_date = time.strftime('%25Y-%25m-%25d')%0A%09post_time = time.strftime('%25Y-%25m-%25dT%25H:%25M:%25S')%0A%09post_path = './%7B%7D-%7B%7D.md'.format(post_date, post_url)%0A%09init_content = %5C%0A%22%22%22---%0Alayout: post%0Atitle: %7B%7D %0Amodified:%0Acategories: %0Adescription:%0Atags:%0Aimage:%0A  feature:%0A  credit:%0A  creditlink:%0Acomments:%0Ashare:%0Adate: %7B%7D%0A---%0A%22%22%22.format(post_name, post_time)%0A%09with open(post_path, 'w') as newpost:%0A%09%09newpost.write(init_content)%0A%0Aif __name__ == '__main__':%0A%09creat_newpost('efficient way to loop np array')

Add newpost shortcut.