Skip to main content

max / makenotwork

Hide the empty Residents and Fellows sections on /team Both rendered a heading over one line of italic placeholder text saying cards would appear later. Per the Aug 1 presentable gate, a section with no real content is hidden rather than shown empty: an empty Residents list reads as a programme that failed to attract anyone, which is the opposite of what it is. The sections come back with their first real card. Nothing here is a data-driven loop, so there is no flag to gate; the markup returns when there is something to put in it. Drops .team-empty from style.css with them, since those two lines were its only consumers. The .team-section spacing rules stay: they describe real sections and apply again as soon as one returns.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Author: Max Johnson <me@maxj.phd> · 2026-08-05 21:23 UTC
Signed with PGP, not checked
Commit: 39dd934badcf9d9efe1fcf546fb011c82f3e58fa
Parent: 4d135c0
2 files changed, +0 insertions, -15 deletions
@@ -11128,11 +11128,6 @@
11128 11128 }
11129 11129 .team-section { margin-top: var(--gap-page); }
11130 11130 .team-section + .team-section { margin-top: var(--gap-page); }
11131 - .team-empty {
11132 - font-size: var(--text-body);
11133 - opacity: 0.65;
11134 - font-style: italic;
11135 - }
11136 11131 .team-card-experience {
11137 11132 margin: var(--gap-section) 0 var(--gap-peer);
11138 11133 line-height: 1.5;
@@ -27,15 +27,5 @@
27 27 </article>
28 28 </div>
29 29 </section>
30 -
31 - <section class="team-section">
32 - <h2 class="section-label">Residents</h2>
33 - <p class="team-empty">Resident cards will appear here as they join.</p>
34 - </section>
35 -
36 - <section class="team-section">
37 - <h2 class="section-label">Fellows</h2>
38 - <p class="team-empty">Fellow cards will appear here.</p>
39 - </section>
40 30 </div>
41 31 {% endblock %}