toc shortcode triggering circular references #650
Replies: 2 comments 2 replies
-
As said in the other discussion, the ToC is a Hugo function and not theme specific. The short code just embeds |
Beta Was this translation helpful? Give feedback.
-
Interestingly enough in my playing around, I was testing with Hugo I traced it to between |
Beta Was this translation helpful? Give feedback.
-
I have the following
content
:_index.md
refers to:page1.md
via{{< ref "page1.md" >}}
page1.md.part
via{{< include file="/abs/path/page1.md.part" >}}
page2.md
via{{< ref "page2.md" >}}
page2.md.part
via{{< include file="/abs/path/page2.md.part" >}}
page1.md
refers to:page1.md.part
via{{< include file="/abs/path/page1.md.part" >}}
page2.md
refers to:page2.md.part
via{{< include file="/abs/path/page2.md.part" >}}
page1.md.part
refers to nothingpage2.md.part
refers to:page1.md
via{{< ref "page1.md" >}}
This all works fine, until I add a table of contents via a
toc
shortcode into_index.md
. The 5th item above triggers a circular reference error. This discourse post seems relevant.Any ideas on how to avoid this circular reference?
I also don't quite understand the circular reference, as there's no reference back to
_index.md
in any of the subpages.For a full repro, please check here: jamesbraza/pycon-redux.com@7ca5eda
Beta Was this translation helpful? Give feedback.
All reactions