e(function () {
                    updateActiveLink();
                    ticking = false;
                });
                ticking = true;
            }
        }

        window.addEventListener('scroll', throttleScroll);

        // 初始化时更新一次
        updateActiveLink();
    });
</script>
{{ end }}