Commit 5864b7f6 authored by Nicolas Steinmetz's avatar Nicolas Steinmetz

Add condition on tag presence

parent 07537392
......@@ -87,7 +87,8 @@ def main():
output.write('title: "%s"\n' % title.replace('"','\''))
output.write('author: %s\n' % author)
output.write('previous_url: %s\n' % link)
output.write('tags: ["%s"] \n' % '", "'.join(tags))
if 'tags' in entry:
output.write('tags: ["%s"] \n' % '", "'.join(tags))
output.write('lastmod: %s\n' % lastmod)
output.write('type: %s\n' % contenttype)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment