-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Description
Describe the bug
When using the collections organization, I still have parent/child pages within the collection, (using has_children: true on the parent and parent: Page Name in the child page). This appears as expect in the menu. However, for every collection except the last collection (by menu/config order), the table of contents on the parent page is empty (though it still displays the TOC title) and the breadcrumbs on the child pages do not correctly link to the parent page (they appear to have no href set).
To Reproduce
Steps to reproduce the behavior:
- Create 2+ collections in the config. eg:
collections:
programming:
permalink: "/:collection/:path/"
output: true
projects:
permalink: "/:collection/:path/"
output: true
just_the_docs:
collections:
programming:
name: Programming
projects:
name: Projects- Within the first collection folder (
_programmingin this example), create 2 files.
index.md
---
layout: page
title: Parent Test
has_children: true
---
Should have a TOC that includes the child page, but it's empty.child.md
---
layout: page
title: Child Test
parent: Parent Test
---
Breadcrumbs on this page should link to the parent page but don't.- When loaded, these pages will have the TOC/breadcrumb issues I describe. But if you move these two files to the last collection (as ordered in
just_the_docsin the config file), they TOC/breadcrumbs will behave properly.
Expected behavior
There should be a TOC/proper breadcrumbs for child/parent pairs in all of the collections.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: Pop OS 20.10
- Using latest just-the-docs release (0.3.3) and Jekyll 3.8.5