Skip to content

Commit

Permalink
create index dir if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
edasmalchi committed Jul 1, 2024
1 parent ce3e89e commit b0db612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions portfolio/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def index(
prod: bool = False,
) -> None:
sites = []
Path("/portfolio/index").mkdir(parents=True, exist_ok=True)
for site in os.listdir("./portfolio/sites/"):
with open(f"./portfolio/sites/{site}") as f:
name = site.replace(".yml", "")
Expand Down

0 comments on commit b0db612

Please sign in to comment.