Skip to content

Commit

Permalink
0-9 are title-worthy
Browse files Browse the repository at this point in the history
  • Loading branch information
Eiriksmal committed May 1, 2019
1 parent fe405f5 commit a440651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generate_entry.py
Expand Up @@ -19,7 +19,7 @@

def generate_entry(title):
today = datetime.today()
slug = re.sub('[^a-zA-Z\-]', '', title.lower().strip().replace(' ', '-'))
slug = re.sub('[^a-zA-Z0-9\-]', '', title.lower().strip().replace(' ', '-'))

# Will attempt to make the year's directory. Does not throw an error if it exists
os.makedirs("content/{}".format(today.year), exist_ok=True)
Expand Down

0 comments on commit a440651

Please sign in to comment.