Skip to content

Commit 7bff922

Browse files
committed
Fix links.
1 parent a87cdff commit 7bff922

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uc_python/collate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
# Build an index as we go
1313
index = site / "index.html"
14-
index.write_text("<h1>UC Python Slides</h1>")
14+
index.write_text("<h1>UC Python Slides</h1>\n")
1515
for repo in folder.glob("*"):
1616
slides_dir = (repo / "slides")
1717
if not slides_dir.exists():
1818
print(f"no slides in {slides_dir}, skipping")
1919
continue
2020
slides_dir.rename(site / repo.name)
2121
with open(index, 'at') as f:
22-
f.write(f'<a href="/{repo.name}">{repo.name}</a>\n')
22+
f.write(f'<a href="{repo.name}">{repo.name}</a>\n')

0 commit comments

Comments
 (0)