Enhance SEO and accessibility across the site by updating meta tags in HTML files, adding canonical links, and implementing Open Graph and Twitter Card metadata. Update .htaccess for improved redirection rules and event handling for the Benefit Brunch. Include new image for sharing purposes.

This commit is contained in:
blake committed 2026-10-06 14:23:13 -05:00
1 parent 305250137c
commit 722079e867
15 files changed
+132 -16

No files matched your search

+12 -5
View File
@@ -6,14 +6,21 @@ const QUICK_EXIT_URL = "https://www.google.com/";
const QUICK_EXIT_KEY = "quick-exit";
const MOBILE_NAV_QUERY = window.matchMedia("(max-width: 88em)");
// Flip active to false when there is no event. That clears the
// announcement and sends anyone on the events page back home.
// Benefit Brunch stays up through Saturday, October 10, 2026, US Central time.
// endsAt is midnight at the start of Sunday (CDT, UTC−5).
// After that, the announcement comes down and /events/ sends visitors home.
// Keep this instant in sync with the events page head script and the .htaccess brunch rule.
const eventAnnouncement = {
active: true,
label: "Benefit Brunch",
date: "Oct 10",
endsAt: "2026-10-11T05:00:00Z",
};
function eventIsActive() {
const endsAt = Date.parse(eventAnnouncement.endsAt);
return Number.isFinite(endsAt) && Date.now() < endsAt;
}
function navigationType() {
const navigation = performance.getEntriesByType("navigation")[0];
return navigation ? navigation.type : "";
@@ -67,11 +74,11 @@ function isEventsPage() {
return /\/events\/(?:index\.html)?$/.test(window.location.pathname);
}
if (!eventAnnouncement.active && isEventsPage()) {
if (!eventIsActive() && isEventsPage()) {
document.documentElement.hidden = true;
const home = "../".repeat(directoryDepth());
window.location.replace(home || "./");
} else if (eventAnnouncement.active) {
} else if (eventIsActive()) {
const href = `${"../".repeat(directoryDepth())}events/`;
document.querySelectorAll(".announcement-message").forEach((message) => {