Skip to content

Commit 2eedb39

Browse files
authored
Merge pull request #37 from agent-ecosystem/fix-section-listing
Suppress dated child-page listings on spec section pages
2 parents 5b34700 + 62cb05a commit 2eedb39

4 files changed

Lines changed: 8 additions & 3 deletions

File tree

‎site/config/_default/params.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ showRecent = false
1111

1212
[article]
1313
showTableOfContents = false
14+
showDate = false
1415

1516
[header]
1617
layout = "basic"

‎site/content/spec/_index.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Specifications"
33
description: "The Agent-Friendly Documentation Spec family: web delivery today, with companion specifications planned for content composition and repository-local docs."
4+
showChildPages: false
45
---
56

67
Agent-friendly documentation has more than one surface. This page is the

‎site/layouts/_default/list.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h1 class="mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">{{ .
2525
{{ .Content | emojify }}
2626
</div>
2727
</section>
28-
{{ if .Data.Pages }}
28+
{{ if and .Data.Pages (.Params.showChildPages | default true) }}
2929
<section>
3030
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
3131
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}

‎site/split_spec.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,12 @@ def main():
227227
f'description: "{desc}"',
228228
f"weight: {weight}",
229229
"showTableOfContents: true",
230-
"---",
231-
"",
232230
]
231+
if slug == "_index":
232+
# The overview hand-curates its contents list; suppress the
233+
# theme's dated child-page listing.
234+
header.append("showChildPages: false")
235+
header += ["---", ""]
233236
if slug == "_index":
234237
nav = "\n".join(contents) + "\n"
235238
# Insert contents list right after the status table (before Abstract).

0 commit comments

Comments
 (0)