Making kramdown ToC work outside content block

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

maybe this will help: