mirror of
https://github.com/RGBCube/Site
synced 2025-08-01 13:37:49 +00:00
headers: fix generated links
This commit is contained in:
parent
99c21c01c7
commit
a01188e892
1 changed files with 1 additions and 1 deletions
2
site.ts
2
site.ts
|
@ -88,7 +88,7 @@ site.process([".html"], (pages) => {
|
||||||
header.id = textNormalized;
|
header.id = textNormalized;
|
||||||
|
|
||||||
const link = document.createElement("a");
|
const link = document.createElement("a");
|
||||||
link.href = "#" + textNormalized;
|
link.setAttribute("href", "#" + textNormalized);
|
||||||
|
|
||||||
header.parentNode!.insertBefore(link, header);
|
header.parentNode!.insertBefore(link, header);
|
||||||
link.appendChild(header);
|
link.appendChild(header);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue