Commit 4484d83
Community page lists its sub-pages (#14)
## Problem
The `/community` page rendered as an empty stub — just the header, no
body. The default `list.html` layout ranges over child **content**
pages, but the community section has none. Its sub-pages (Learning,
Calendar, Authors, Forums, Discord Archive) only existed in the nav
dropdown via the `community` menu.
## Change
- Add `themes/powershell-community/layouts/community/list.html`, a
section-specific layout that renders the `community` menu entries as a
card grid (keeping the section's intro text and header styling).
- Enrich the `community` menu entries in `hugo.yaml` with `icon` and
`description` params (and `external: true` on Forums so it opens in a
new tab).
Because the page is driven off `.Site.Menus.community`, future sub-pages
only need a menu entry to show up in both the nav dropdown and the page
body — they stay in sync automatically.
## Testing
- `hugo` builds clean (no new warnings).
- Verified the rendered `/community/index.html` contains all five cards
with correct icons and the external Forums link.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent e590650 commit 4484d83
2 files changed
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | 62 | | |
60 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
64 | 73 | | |
65 | 74 | | |
66 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
67 | 80 | | |
68 | 81 | | |
69 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments