From 466bf9c608727e8c224c80f10b3a2c5a7d385210 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Sat, 14 Nov 2026 09:30:58 -0800 Subject: [PATCH 1/3] Add configurable alert banner to header --- README.md | 11 +++++++++++ src/_includes/components/header.njk | 21 ++++++++++++++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 27f0a05..1e56156 100644 --- a/README.md +++ b/README.md @@ -68,6 +68,17 @@ To deploy by hand, run `npm run deploy`. `npm run preview` creates a Preview dep - `src/_data/`: Global site metadata. - `_site/`: The generated static site (output). +## Header banner + +Any page can show an alert bar under the header by adding `banner` to its front matter: + +```yaml +banner: + level: info # optional: primary, secondary, success, info (default), warning, danger, light, dark + icon: info-circle # optional: Bootstrap Icons name; defaults per level, "" for none + text: Heads up! Details # required, HTML allowed +``` + ## Sitemaps and SEO Sitemaps are automatically generated during the build process. SEO metadata (Open Graph, Twitter cards, etc.) is managed via the Eleventy data cascade and layouts. Overrides can be set in the Front Matter of individual pages. diff --git a/src/_includes/components/header.njk b/src/_includes/components/header.njk index e33e5b9..d9b5943 100644 --- a/src/_includes/components/header.njk +++ b/src/_includes/components/header.njk @@ -1,4 +1,5 @@ -