Making kramdown ToC work outside content block


#1

I’m trying to put ToC inside the sidebar, instead of in content block. Is it possible with kramdown?

site url: https://tu5.github.io/toc/
sidebar: https://github.com/tu5/toc/blob/master/_includes/sidebar.html


#2

maybe this will help: