Commit 517b52b
Restrict Pro sidebar badge to parent pages with children
Only render the Pro badge in the <summary> of folders backed by an
_index.md (i.e., pages with child pages); leaf article links no
longer carry the badge.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 10036bb commit 517b52b
1 file changed
Lines changed: 3 additions & 3 deletions
File tree
- docs/layouts/_partials/sidebar
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| |||
0 commit comments