Passe black pour unifier le code
This commit is contained in:
@@ -56,12 +56,12 @@ class Blog:
|
|||||||
html_file.write(html_content)
|
html_file.write(html_content)
|
||||||
|
|
||||||
def _copy_css(self):
|
def _copy_css(self):
|
||||||
css_path = Path(self.conf.theme) / 'css'
|
css_path = Path(self.conf.theme) / "css"
|
||||||
dest_path = Path(self.conf.outbox) / 'css'
|
dest_path = Path(self.conf.outbox) / "css"
|
||||||
|
|
||||||
if not dest_path.exists():
|
if not dest_path.exists():
|
||||||
dest_path.mkdir()
|
dest_path.mkdir()
|
||||||
|
|
||||||
for css_file in css_path.glob('*.css'):
|
for css_file in css_path.glob("*.css"):
|
||||||
dest_file = dest_path / css_file.name
|
dest_file = dest_path / css_file.name
|
||||||
shutil.copy(css_file, dest_file)
|
shutil.copy(css_file, dest_file)
|
||||||
|
@@ -65,7 +65,7 @@ class Page:
|
|||||||
|
|
||||||
# if name == date:
|
# if name == date:
|
||||||
# return datetime(self.meta['date'], "%Y-%m-%d")
|
# return datetime(self.meta['date'], "%Y-%m-%d")
|
||||||
|
|
||||||
return self.meta[name]
|
return self.meta[name]
|
||||||
|
|
||||||
def _extract_meta_and_markdown(self, content: str) -> list:
|
def _extract_meta_and_markdown(self, content: str) -> list:
|
||||||
|
Reference in New Issue
Block a user