diff --git a/site/config/_default/params.toml b/site/config/_default/params.toml index bf79d48..8d503e6 100644 --- a/site/config/_default/params.toml +++ b/site/config/_default/params.toml @@ -11,6 +11,7 @@ showRecent = false [article] showTableOfContents = false +showDate = false [header] layout = "basic" diff --git a/site/content/spec/_index.md b/site/content/spec/_index.md index 43145de..53dd60a 100644 --- a/site/content/spec/_index.md +++ b/site/content/spec/_index.md @@ -1,6 +1,7 @@ --- title: "Specifications" description: "The Agent-Friendly Documentation Spec family: web delivery today, with companion specifications planned for content composition and repository-local docs." +showChildPages: false --- Agent-friendly documentation has more than one surface. This page is the diff --git a/site/layouts/_default/list.html b/site/layouts/_default/list.html index 64c7650..dac2f2b 100644 --- a/site/layouts/_default/list.html +++ b/site/layouts/_default/list.html @@ -25,7 +25,7 @@

{{ . {{ .Content | emojify }} - {{ if .Data.Pages }} + {{ if and .Data.Pages (.Params.showChildPages | default true) }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }} {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} diff --git a/site/split_spec.py b/site/split_spec.py index 83cc2a8..3a457c2 100644 --- a/site/split_spec.py +++ b/site/split_spec.py @@ -227,9 +227,12 @@ def main(): f'description: "{desc}"', f"weight: {weight}", "showTableOfContents: true", - "---", - "", ] + if slug == "_index": + # The overview hand-curates its contents list; suppress the + # theme's dated child-page listing. + header.append("showChildPages: false") + header += ["---", ""] if slug == "_index": nav = "\n".join(contents) + "\n" # Insert contents list right after the status table (before Abstract).