diff --git a/content/en/history/bibliography/_index.md b/content/en/history/bibliography/_index.md index 4a499831..b9c2823f 100644 --- a/content/en/history/bibliography/_index.md +++ b/content/en/history/bibliography/_index.md @@ -2,6 +2,7 @@ title: Bibliography heading: Interlisp Bibliography type: bibliography +robots: "noindex, follow" cascade: type: bibliography toc_hide: true diff --git a/layouts/_partials/hooks/head-end.html b/layouts/_partials/hooks/head-end.html index f800ce9f..14f526e3 100644 --- a/layouts/_partials/hooks/head-end.html +++ b/layouts/_partials/hooks/head-end.html @@ -1,3 +1,11 @@ +{{- /* Emit a page-level robots directive when front matter sets `robots`. + Docsy's head.html already emits "index, follow" for production pages; + when both tags are present, search engines apply the most restrictive + rule, so a `noindex` value here wins. See the bibliography section's + _index.md. */ -}} +{{ with .Params.robots }} + +{{ end }} {{ partial "bibliography-json-ld.html" . }} diff --git a/layouts/bibliography/list.html b/layouts/bibliography/list.html index 68cd602d..47b6334b 100644 --- a/layouts/bibliography/list.html +++ b/layouts/bibliography/list.html @@ -107,9 +107,9 @@