style fixes
This commit is contained in:
parent
65e9f0a67b
commit
d8b7a1b562
@ -62,8 +62,8 @@ class metadata:
|
||||
def get_starting(self):
|
||||
return (
|
||||
# f"{self.caption}\n" if len(self.caption) > 0 else "" + f"# {self.title}\n"
|
||||
f"{self.caption}\n"
|
||||
if len(self.caption) > 0
|
||||
f"{self.caption}\n\n***\n"
|
||||
if len(self.caption) > 0 and self.caption != " "
|
||||
else ""
|
||||
)
|
||||
|
||||
|
@ -48,7 +48,7 @@ for exported in range(nbToExport):
|
||||
mkdir(articleDir)
|
||||
with open("{}/index.md".format(articleDir), "w") as f:
|
||||
f.write(
|
||||
"{}\n\n{}\n{}\n{}".format(
|
||||
"{}\n{}\n{}\n{}".format(
|
||||
meta.get_frontmatter(),
|
||||
meta.get_starting(),
|
||||
convert(article.texte),
|
||||
|
Loading…
Reference in New Issue
Block a user