Skip to content

Directory shell: use the site's own banner, header and footer - #85

Merged
yesnet0 merged 2 commits into
mainfrom
feat/directory-shell-passthrough
Nov 30, 2026
Merged

yesnet0 merged 2 commits into
mainfrom
feat/directory-shell-passthrough

Conversation

@yesnet0

@yesnet0 yesnet0 commented Nov 30, 2026

Copy link
Copy Markdown
Member

directory.disclose.io is built from this site's /directory-shell/ page. Since the restyle that page has rendered a frozen copy of the old header and footer on the old stylesheet, so the directory did not match the rest of the site.

This makes the shell render the same partials as every other page:

  • baseof.html: no special case for the shell's header, footer, mobile menu or banner. The shell links site.css by absolute URL, because the directory's asset proxy drops the ?v= query.
  • announcement.html: the banner link is made absolute, since it now also shows on the directory.
  • directory-shell.html: a two-property reset so the directory's own headings keep their current look.
  • scripts/check-directory-shell.mjs replaces check-frozen-shell.mjs. It fails the build unless the shell's banner, header, footer and mobile menu equal the home page's, the three insertion markers are present, and every class exists in site.css. --self-test proves each check can fail.

layouts/partials/legacy/ and static/css/main.css are left in place for now; they can go in a follow-up once nothing links them.

Tested: built CSS is byte-identical to production; directory content compared element by element before and after on four page types with no visible difference; menus, search and the phone menu exercised at desktop and phone widths.

…ite.css

directory.disclose.io is built from /directory-shell/. The shell was frozen on the
pre-restyle partials and main.css (2026-11-25). It now renders the same partials as
every other page and links site.css by absolute URL. The guard is replaced: the
shell's banner, header, footer and mobile menu must equal the home page's, the three
directory markers must be present, and every class must exist in site.css.
Legacy partials and static/css/main.css are kept for rollback and cached shells.
site.css makes every h1 and h2 bold with tight tracking. The directory's content
brings its own stylesheet and expects the old defaults, so undo those two
properties inside <main> on the shell only. Zero specificity scope, placed before
the directory's stylesheet so its own rules still win.
@yesnet0
yesnet0 merged commit 9e79352 into main Nov 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant