diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index e9dc950f..b3170110 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -33,7 +33,7 @@
h.each(function (i, e) {
e = $(e);
if (e.offset().top - $(window).height()/3 <= currentScroll) {
- id = e.attr('id');
+ id = decodeURIComponent(e.attr('id'));
}
});
var active = $toc.find('a.active');
@@ -62,4 +62,4 @@
}
})();
-{{ end }}
\ No newline at end of file
+{{ end }}