switch to newer slugifier
This commit is contained in:
parent
b517e726cb
commit
cc07869989
@ -1,4 +1,4 @@
|
|||||||
pymysql
|
pymysql
|
||||||
peewee
|
peewee
|
||||||
unicode-slugify
|
python-slugify[unidecode]
|
||||||
pyyaml
|
pyyaml
|
||||||
|
@ -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}", only_ascii=True)
|
return slugify(f"{self.id}-{self.title}")
|
||||||
|
|
||||||
def get_frontmatter(self):
|
def get_frontmatter(self):
|
||||||
return "---\n{}---".format(
|
return "---\n{}---".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user