Skip to content

Commit a60140c

Browse files
committed
HOTFIX: Add htaccess =D
1 parent 48565c0 commit a60140c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/geno/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,15 @@ def main():
1616
)
1717
static.mkdir()
1818

19-
content = pathlib.Path("content")
2019
shutil.copytree("./assets", static / "assets")
21-
2220
shutil.copy("assets/images/nesware/nesware-logo-textless-64px.ico", static / "favicon.ico")
21+
with open(static / ".htaccess", "w") as htaccess:
22+
htaccess.write("DirectoryIndex index.html")
2323

2424
css = CSS(pathlib.Path("assets") / "css")
2525

26+
content = pathlib.Path("content")
27+
2628
def split_frontmatter_from_content(md_content: str) -> tuple[str, str]:
2729
if "---fm---" in md_content:
2830
frontmatter, content = md_content.split("---fm---", 1)

0 commit comments

Comments
 (0)