Skip to content

Commit 3aa3dc7

Browse files
authored
Blog list layout: display the page title and content (#2157)
1 parent 6c22754 commit 3aa3dc7

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,12 @@ For the full list of changes, see the [0.x.y] release notes.
3030

3131
**Other changes**:
3232

33+
- Blog section index page content and title used to be ignored. They are now
34+
displayed ([#1787]). You can recover the old behavior use the following style
35+
override: `.td-section.td-blog .td-content { display: none; }`.
36+
3337
[0.x.y]: https://github.com/google/docsy/releases/latest?FIXME=v0.X.Y
38+
[#1787]: https://github.com/google/docsy/issues/1787
3439

3540
## 0.11.0
3641

layouts/blog/list.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{{ define "main" -}}
22

3+
<div class="td-content">
4+
<h1>{{ .Title }}</h1>
5+
{{ .Content }}
6+
</div>
7+
38
{{ if (and .Parent .Parent.IsHome) -}}
49
{{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) -}}
510
{{ else -}}

userguide/static/refcache.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@
371371
"StatusCode": 200,
372372
"LastSeen": "2024-11-06T12:04:24.736233-05:00"
373373
},
374+
"https://github.com/google/docsy/issues/1787": {
375+
"StatusCode": 206,
376+
"LastSeen": "2025-01-07T17:47:01.735556-05:00"
377+
},
374378
"https://github.com/google/docsy/issues/1812": {
375379
"StatusCode": 200,
376380
"LastSeen": "2024-11-06T12:03:52.305697-05:00"

0 commit comments

Comments
 (0)