1
Fork 0
mirror of https://github.com/RGBCube/Site synced 2025-07-30 20:47:46 +00:00

headers: fix generated links

This commit is contained in:
RGBCube 2025-06-02 23:07:48 +03:00
parent 99c21c01c7
commit a01188e892
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -88,7 +88,7 @@ site.process([".html"], (pages) => {
header.id = textNormalized;
const link = document.createElement("a");
link.href = "#" + textNormalized;
link.setAttribute("href", "#" + textNormalized);
header.parentNode!.insertBefore(link, header);
link.appendChild(header);