~linuxgoose/quillhut-static

2302c35d45f6638e75058e0ec2895e60e2acedd8 — Jordan Robinson 8 days ago 3f8a9fe main
remove click listener
1 files changed, 0 insertions(+), 14 deletions(-)

M index.html
M index.html => index.html +0 -14
@@ 304,20 304,6 @@
        bcName.innerText = "404";
    }

    document.addEventListener('click', e => {
        const link = e.target.closest('a');
        if (CONFIG.USE_CLEAN_PATHS && link && link.href.startsWith(window.location.origin) && !link.getAttribute('target')) {
            const url = new URL(link.href);
            const hasExtension = url.pathname.includes('.') && !url.pathname.endsWith('.md');
            if (!hasExtension) {
                e.preventDefault();
                log(`Link clicked: ${url.pathname}`);
                history.pushState(null, '', link.href);
                render();
            }
        }
    });

    async function generateRSS() {
        log("Generating full RSS feed...");
        try {