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