def new_post(GITDIRECTORY=CONFIG['<STR_LIT>'], kind=KINDS['<STR_LIT>']):  
title = input("<STR_LIT>")<EOL>while '<STR_LIT::>' in title:<EOL><INDENT>title = input("<STR_LIT>")<EOL><DEDENT>author = CONFIG['<STR_LIT>']<EOL>date = datetime.datetime.strftime(datetime.datetime.now(), '<STR_LIT>')<EOL>tags = input("<STR_LIT>")<EOL>published = '<STR_LIT:yes>'<EOL>chronological = '<STR_LIT:yes>'<EOL>summary = ("<STR_LIT>")<EOL>fname = os.path.join(os.getcwd(), '<STR_LIT:content>', kind['<STR_LIT>'],<EOL>datetime.datetime.strftime(datetime.datetime.now(),<EOL>'<STR_LIT>'),<EOL>date + '<STR_LIT:->' + title.replace('<STR_LIT:U+0020>', '<STR_LIT:->') + '<STR_LIT>')<EOL>if not os.path.exists(os.path.dirname(fname)):<EOL><INDENT>os.makedirs(os.path.dirname(fname))<EOL><DEDENT>with open(fname, '<STR_LIT:w>') as npost:<EOL><INDENT>npost.write('<STR_LIT>')<EOL>npost.write('<STR_LIT>' % title)<EOL>npost.write('<STR_LIT>' % author)<EOL>npost.write('<STR_LIT>' % date)<EOL>npost.write('<STR_LIT>' % tags)<EOL>npost.write('<STR_LIT>' % published)<EOL>npost.write('<STR_LIT>' % chronological)<EOL>npost.write('<STR_LIT>' % kind['<STR_LIT:name>'])<EOL>npost.write('<STR_LIT>' % summary)<EOL>npost.write('<STR_LIT>')<EOL><DEDENT>os.system('<STR_LIT>' % (CONFIG['<STR_LIT>'], fname))<EOL>
This function should create a template for a new post with a title
read from the user input.
Most other fields should be defaults.
TODO: update this function