ascii only in file slugs, WARNING undocumented option
This commit is contained in:
parent
d29aa331d6
commit
b517e726cb
@ -32,7 +32,7 @@ class metadata:
|
|||||||
self.microblog = article.microblog # Probably unused
|
self.microblog = article.microblog # Probably unused
|
||||||
|
|
||||||
def get_slug(self):
|
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):
|
def get_frontmatter(self):
|
||||||
return "---\n{}---".format(
|
return "---\n{}---".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user