ChatGPT (model unspecified)· OpenAI
ShareLM (browser-extension contributions)
How to define children in jekyll? I want a certain page to be higher (e.g. in terms of…
- User
How to define children in jekyll? I want a certain page to be higher (e.g. in terms of read the doc sidebar) than others that discuss sub topics. How to do it? I currently have the default settings (no includes), and an example I want to make into a header is
layout: default title: "General Advice" permalink: /general-advice/ nav_order: 2
- Assistant
If you are using Just the Docs (the theme used by many “Read-the-Docs-style” Jekyll sites), then hierarchical navigation is controlled entirely through front-matter keys. To make a page appear above child pages in the sidebar, you declare it as a parent, and the others declare it as their parent. Here’s how to do it.
✅ 1. Parent page (your top-level header) yamlCopiar código--- layout: default title: "General Advice" permalink: /general-advice/ nav_order: 2 has_children: true # ← This makes it a parent in the sidebar
✅ 2. Child pages (sub-topics) Each child page adds: yamlCopiar código--- l
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.