unicode in yaml & better term output

This commit is contained in:
Guilhem Fauré 2023-04-24 14:12:20 +02:00
parent b8e72b2f38
commit d29aa331d6

View File

@ -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}") return slugify(f"{self.id}-{self.title}", allow_unicode=False)
def get_frontmatter(self): def get_frontmatter(self):
return "---\n{}---".format( return "---\n{}---".format(