diff options
| author | 2026-01-03 19:53:19 +0330 | |
|---|---|---|
| committer | 2026-01-03 19:53:19 +0330 | |
| commit | 9ea9d92088057855bafba7f51a7e79450e403177 (patch) | |
| tree | ca5c8eaf2ce16f65824cb3f438e8573d480c5837 | |
| parent | better toc (diff) | |
it was cooler without the sort
| -rw-r--r-- | index.html | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -312,7 +312,7 @@ } let tocHtml = '' - tocItems = tocItems.sort((a, b) => a.name.localeCompare(b.name)) + // tocItems = tocItems.sort((a, b) => a.name.localeCompare(b.name)) if (tocItems.length > 0) { tocHtml = `<div id="table-of-contents" style="display: grid; grid-template-columns: repeat(auto-fill, minmax(max(3rem, 3.125%), 1fr)); gap: 0.5rem; margin-bottom: 2rem; border: 1px solid var(--border); padding: 10px; border-radius: 5px;">` const tocItemNames = tocItems.map(e => e.id) |
