Commit 86a895e2 authored by Nicolas Steinmetz's avatar Nicolas Steinmetz

Add date in filename to avoid overwriting file when title are duplicated

parent 5864b7f6
......@@ -78,7 +78,7 @@ def main():
tags.append(tag['term'])
content = entry.content[0].value
contenttype = DEFAULT_CONTENT_TYPE
filetitle = "%s.html" % slugify(entry.title)
filetitle = "%s-%s.html" % (entry.published[:10], slugify(entry.title))
full_dest_path = "%s/%s" % (dest_path, filetitle)
output = open(full_dest_path, 'w')
......
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