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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following
content:_index.mdrefers to:page1.mdvia{{< ref "page1.md" >}}page1.md.partvia{{< include file="/abs/path/page1.md.part" >}}page2.mdvia{{< ref "page2.md" >}}page2.md.partvia{{< include file="/abs/path/page2.md.part" >}}page1.mdrefers to:page1.md.partvia{{< include file="/abs/path/page1.md.part" >}}page2.mdrefers to:page2.md.partvia{{< include file="/abs/path/page2.md.part" >}}page1.md.partrefers to nothingpage2.md.partrefers to:page1.mdvia{{< ref "page1.md" >}}This all works fine, until I add a table of contents via a
tocshortcode 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.mdin 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