ventListener('click', function (e) {
                    // If not click on .heading-permalink
                    if (e.target.classList.contains('heading-permalink')) {
                        return;
                    }

                    e.preventDefault();

                    document.querySelector(this.getAttribute('href')).scrollIntoView({
                        behavior: 'smooth'
                    });
                });
            });
        });
    </script>
</body>
</html>
