ascii only in file slugs, WARNING undocumented option

This commit is contained in:
Guilhem Fauré 2023-04-24 14:14:32 +02:00
parent d29aa331d6
commit b517e726cb

View File

@ -32,7 +32,7 @@ class metadata:
self.microblog = article.microblog # Probably unused
def get_slug(self):
return slugify(f"{self.id}-{self.title}", allow_unicode=False)
return slugify(f"{self.id}-{self.title}", only_ascii=True)
def get_frontmatter(self):
return "---\n{}---".format(