# Using toc with shortcode

**URL:** <https://discourse.gohugo.io/t/using-toc-with-shortcode/30418>\
**Category:** support\
**Created:** [January 5, 2021, 7:37am UTC](https://discourse.gohugo.io/t/using-toc-with-shortcode/30418 "2021-01-05T07:37:21Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fekete-robert](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/fekete-robert/32/13363_2.png) [@fekete-robert](https://discourse.gohugo.io/u/fekete-robert)\
**Post date:** [January 5, 2021, 8:35am UTC](https://discourse.gohugo.io/t/using-toc-with-shortcode/30418/2 "2021-01-05T08:35:26Z")

</div>

Hi, AFAIK that’s a known shortcoming of hugo. We ended up using a custom toc builder as a workaround.  
Search the forums for possible solutions, for example see this thread: [Create a custom page TOC ("mini TOC") with Javascript](https://discourse.gohugo.io/t/create-a-custom-page-toc-mini-toc-with-javascript/16665)  
(There is another thread with a solution that does not use javascript, but can’t find it at the moment.)

---

_[View the full topic](https://discourse.gohugo.io/t/using-toc-with-shortcode/30418)._
