Commit 441ca1b
committed
feat: Generate index.html within path directories
This commit modifies the build script to generate `index.html` files inside
directories corresponding to the defined paths in `links.json`.
Previously, HTML files were generated directly as `[path].html`. This change
ensures that URLs like `/foo` and `/foo/` both correctly resolve to
`/foo/index.html`, preventing 404 errors due to trailing slash inconsistencies.1 parent 1085339 commit 441ca1b
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments