Repository navigation
Directory shell: use the site's own banner, header and footer - #85
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 linkssite.cssby 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.mjsreplacescheck-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 insite.css.--self-testproves each check can fail.layouts/partials/legacy/andstatic/css/main.cssare 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.