diff --git a/CHANGELOG.md b/CHANGELOG.md index 467656661f..bcbb541fd0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,8 @@ For the full list of changes, see the [0.x.y] release notes. [Breadcrumb navigation]. - **Blog** pages now also have breadcrumbs by default ([#1788]). - Index-page single-element breadcrumb lists are hidden by default ([#2160]). +- Support for a [td-content-after-header.html] page-content render hook, which + can be [content type] specific ([#2192]). **Other changes**: @@ -50,8 +52,10 @@ For the full list of changes, see the [0.x.y] release notes. [#1787]: https://github.com/google/docsy/issues/1787 [#1788]: https://github.com/google/docsy/issues/1788 [#2160]: https://github.com/google/docsy/pull/2160 +[#2192]: https://github.com/google/docsy/pull/2192 [Breadcrumb navigation]: https://www.docsy.dev/docs/adding-content/navigation/#breadcrumb-navigation +[content type]: https://gohugo.io/quick-reference/glossary/#content-type ## 0.11.0 diff --git a/layouts/_default/content.html b/layouts/_default/content.html index 728d237750..9077ae2745 100644 --- a/layouts/_default/content.html +++ b/layouts/_default/content.html @@ -7,6 +7,7 @@

{{ .Title }}

{{ partial "reading-time.html" . -}} {{ end -}} + {{ .Render "td-content-after-header" }} {{ .Content }} {{ partial "feedback.html" . -}} {{ if (.Site.Config.Services.Disqus.Shortname) -}} diff --git a/layouts/_default/td-content-after-header.html b/layouts/_default/td-content-after-header.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/layouts/blog/content.html b/layouts/blog/content.html index dbb6559135..6e61a7dd03 100644 --- a/layouts/blog/content.html +++ b/layouts/blog/content.html @@ -11,6 +11,7 @@

{{ .Title }}

{{ partial "reading-time.html" . -}} {{ end -}} + {{ .Render "td-content-after-header" }} {{ .Content }} {{ if (.Site.Config.Services.Disqus.Shortname) -}}
diff --git a/layouts/docs/list.html b/layouts/docs/list.html index 9ba3e31e80..c749f645f6 100644 --- a/layouts/docs/list.html +++ b/layouts/docs/list.html @@ -8,8 +8,9 @@

{{ .Title }}

{{ partial "reading-time.html" . -}} {{ end -}} + {{ .Render "td-content-after-header" }} {{ .Content }} - {{ partial "section-index.html" . -}} + {{ partial "section-index.html" . -}} {{ partial "feedback.html" . -}} {{ if (.Site.Config.Services.Disqus.Shortname) -}}
diff --git a/userguide/static/refcache.json b/userguide/static/refcache.json index 5a2690c686..c410e71bc0 100644 --- a/userguide/static/refcache.json +++ b/userguide/static/refcache.json @@ -571,6 +571,10 @@ "StatusCode": 206, "LastSeen": "2025-01-08T13:26:59.610341-05:00" }, + "https://github.com/google/docsy/pull/2192": { + "StatusCode": 206, + "LastSeen": "2025-02-10T11:24:51.123801-05:00" + }, "https://github.com/google/docsy/pulls": { "StatusCode": 200, "LastSeen": "2024-11-06T12:03:15.642661-05:00" @@ -807,6 +811,10 @@ "StatusCode": 206, "LastSeen": "2024-11-06T12:04:23.921846-05:00" }, + "https://gohugo.io/quick-reference/glossary/#content-type": { + "StatusCode": 206, + "LastSeen": "2025-02-10T11:24:50.719553-05:00" + }, "https://gohugo.io/templates/render-hooks/": { "StatusCode": 206, "LastSeen": "2024-11-06T12:04:58.341425-05:00"