chore: standardize Hextra navbar and footer with BypassNRO - #119
Merged
Conversation
Adopt the shared navbar/footer partial set so a new THectic project repo can drop the same files in unchanged: - navbar-title.html: THectic monogram tile (-> thectic.nl) plus a GitHub-style hover card naming the destination; wordmark still links to this site's home. - custom/head-end.html (new): plain-CSS styling for that hover card, kept out of the repo's custom.css so the header is a self-contained drop-in. - footer.html: override that drops the footer's duplicate language/theme switches (both already live in the navbar). Replaces the display:none hack in custom.css. - custom/footer.html: "(c) <year> THectic" -> thectic.nl, matching BypassNRO and THectic.nl's own footer (was "By Sten Tijhuis"). hugo.toml: disableHugoGeneratorInject, per-language locale, and RSS in disableKinds, to match the other THectic Hextra repos. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adopts the approach from BypassNRO#27: the `hx:` utility classes this partial used (gap-2.5, hover:opacity-80, shrink-0, ...) are not all in Hextra's precompiled bundle, and Hextra never reruns Tailwind against the site's own templates, so they silently compiled to nothing — no gap, no hover fade. - navbar-title.html: .brand-lockup / .brand-mark / .brand-home structure, byte-identical to BypassNRO. - src/assets/css/custom.css: the .brand-* rules and the hover-card styling as plain CSS, replacing _partials/custom/head-end.html (deleted). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.
What
Brings the shared Hextra navbar/footer partial set (from BypassNRO) into this repo so every THectic project site renders the same header and footer, and a new repo can drop the same four files in unchanged.
Shared partials (identical to BypassNRO)
_partials/navbar-title.htmlthectic.nl, now with a GitHub-style hover card ("THectic") that fades in on hover/focus. Wordmark still links to this site's home._partials/custom/head-end.html.thectic-home*prefix), injected into<head>. Kept out ofcustom.cssso the header is a self-contained drop-in. Light/dark aware, respectsprefers-reduced-motion._partials/footer.htmldisplay:nonehack incustom.css._partials/custom/footer.html© <year> THectic→thectic.nl, matching BypassNRO and THectic.nl's own footer. WasBy Sten Tijhuis.hugo.toml
disableHugoGeneratorInject = true(drops the tab-indented<meta name=generator>)locale(en-US/nl-NL)'RSS'added todisableKindsto line up with THectic.nl / BypassNRO / Hagmolenpups.
Note
The footer credit changes from the personal By Sten Tijhuis to the org-standard © THectic. Shout if you'd rather keep the personal line — that just means this repo diverges from the shared partial.
Verified
hugo --gc --minify --panicOnWarningclean