diff --git a/CHANGELOG.md b/CHANGELOG.md index 49526411d9..4ac418c566 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,8 +30,8 @@ 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 +- Blog section index page content and title used to be ignored, they are now + displayed ([#1787]). To 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 diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 2b5389465f..948623c608 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -2,16 +2,15 @@

{{ .Title }}

-{{ .Content }} +{{ with .Content }}{{ . }}{{ end -}}
- {{ if (and .Parent .Parent.IsHome) -}} {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) -}} {{ else -}} {{$.Scratch.Set "blog-pages" .Pages -}} {{ end -}} -{{- if .Pages -}} +{{ if .Pages -}}
{{ $pager := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006" ) -}} {{ range $pager.PageGroups -}}