From 15c62efa5b6d04b1895ad1cf0b42dff5a7571c0a Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Tue, 7 Jan 2025 17:39:29 -0500 Subject: [PATCH] Blog list layout: display the page title and content --- CHANGELOG.md | 5 +++++ layouts/blog/list.html | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c040d77deb..49526411d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,12 @@ For the full list of changes, see the [0.x.y] release notes. **Other changes**: +- Blog section index page content and title used to be ignored. They are now + displayed ([#1787]). You can recover the old behavior use the following style + override: `.td-section.td-blog .td-content { display: none; }`. + [0.x.y]: https://github.com/google/docsy/releases/latest?FIXME=v0.X.Y +[#1787]: https://github.com/google/docsy/issues/1787 ## 0.11.0 diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 2dc8b18719..2b5389465f 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -1,5 +1,10 @@ {{ define "main" -}} +
+

{{ .Title }}

+{{ .Content }} +
+ {{ if (and .Parent .Parent.IsHome) -}} {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) -}} {{ else -}}