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

+15
View File
@@ -4,8 +4,22 @@ ErrorDocument 404 /404.html
<IfModule mod_rewrite.c>
RewriteEngine On
# One public host: https://whispersoflhj.org/
RewriteCond %{HTTP_HOST} ^(?:www\.)?whispersoflhj\.(?:com|org)(?::\d+)?$ [NC]
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^whispersoflhj\.org(?::\d+)?$ [NC]
RewriteRule ^ https://whispersoflhj.org%{REQUEST_URI} [R=301,L,NE]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L,NE]
# Benefit brunch: after the morning of October 11, 2026 on the server clock,
# send /events/ home and mark that response noindex. %{TIME} follows the server
# timezone, so this is the morning after the brunch in US time zones.
# Keep 20261011060000 in sync with endsAt in script.js (2026-10-11T05:00:00Z).
RewriteCond expr "%{TIME} >= 20261011060000"
RewriteRule ^events(?:/index\.html)?/?$ / [R=302,L,E=brunch_over:1]
</IfModule>
<IfModule mod_alias.c>
@@ -25,6 +39,7 @@ ErrorDocument 404 /404.html
Header always set Strict-Transport-Security "max-age=31536000"
Header always set X-Content-Type-Options "nosniff"
Header always set X-Frame-Options "DENY"
Header always set X-Robots-Tag "noindex" env=brunch_over
</IfModule>
<IfModule mod_brotli.c>
+10
View File
@@ -55,6 +55,8 @@ The website has no build process, package manager, database, or server-side appl
## Hosting
The public site is [https://whispersoflhj.org/](https://whispersoflhj.org/). `.htaccess` redirects `www.whispersoflhj.org` and `whispersoflhj.com` to that host and sends HTTP requests to HTTPS.
The production server should support Apache `.htaccess` directives for:
- HTTPS redirects
@@ -63,6 +65,14 @@ The production server should support Apache `.htaccess` directives for:
- Compression and browser caching
- Redirects from previous page URLs
## Benefit Brunch
The October 10, 2026 brunch stays up through the end of that Saturday, US Central time. At midnight, the announcement comes down on its own.
`/events/` then sends people home. The events page does that before it paints, and Apache redirects the URL with `noindex` so crawlers do not keep it. The date, place, and ticket copy can stay in `events/index.html`. After that night, the page is no longer served.
The cutoff is `2026-10-11T05:00:00Z` in `script.js` and `events/index.html`. `.htaccess` uses `20261011060000`, which follows the server clock and falls on the morning after the brunch in US time zones. For a later event, change those three together and replace the copy on the events page.
## Privacy
This repository must not contain credentials, private client documents, unapproved photographs, survivor information, or other confidential material.
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Read the accessibility commitment for the Whispers website and learn how to request assistance." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/accessibility/" />
<meta property="og:url" content="https://whispersoflhj.org/accessibility/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+15 -1
View File
@@ -10,8 +10,15 @@
if (type === "back_forward" && sessionStorage.getItem("quick-exit") === "1") {
document.documentElement.hidden = true;
location.replace("https://www.google.com/");
return;
}
} catch (error) {}
var brunchEndsAt = Date.parse("2026-10-11T05:00:00Z");
if (isFinite(brunchEndsAt) && Date.now() >= brunchEndsAt) {
document.documentElement.hidden = true;
location.replace("../");
}
})();
</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
@@ -21,7 +28,14 @@
<meta property="og:description" content="A morning of brunch, auctions, and stories on October 10, 2026, at Trinity Reformed Church in Orange City." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/events/" />
<meta property="og:url" content="https://whispersoflhj.org/events/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Find support from Whispers of Love, Hope, and Joy in Northwest Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/get-help/" />
<meta property="og:url" content="https://whispersoflhj.org/get-help/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Give, volunteer, or build a community partnership with Whispers of Love, Hope, and Joy in Northwest Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/get-involved/" />
<meta property="og:url" content="https://whispersoflhj.org/get-involved/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Christ-centered support, practical help, and healing community for survivors of domestic abuse in Northwest Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/" />
<meta property="og:url" content="https://whispersoflhj.org/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Learn how the Whispers website handles privacy, outside services, and safety-sensitive communications." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/privacy/" />
<meta property="og:url" content="https://whispersoflhj.org/privacy/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+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) => {
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Learn about Shop Church, a relaxed and welcoming worshiping community connected to Whispers in Sioux Center, Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/shop-church/" />
<meta property="og:url" content="https://whispersoflhj.org/shop-church/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Practical safety-planning, technology-safety, and support resources for people experiencing domestic abuse in Northwest Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/staying-safe/" />
<meta property="og:url" content="https://whispersoflhj.org/staying-safe/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Learn about a restorative community offering safe housing and whole-person support for women and children." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/talitha-koum/" />
<meta property="og:url" content="https://whispersoflhj.org/talitha-koum/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Learn how Whispers walks alongside women and families through safety, healing, practical support, and lasting relationships." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/what-we-do/" />
<meta property="og:url" content="https://whispersoflhj.org/what-we-do/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />
+8 -1
View File
@@ -21,7 +21,14 @@
<meta property="og:description" content="Learn how Whispers began, what guides its work, and how its community continues to grow across Northwest Iowa." />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary" />
<link rel="canonical" href="https://whispersoflhj.org/who-we-are/" />
<meta property="og:url" content="https://whispersoflhj.org/who-we-are/" />
<meta property="og:image" content="https://whispersoflhj.org/img/share.png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="Whispers of Love, Hope, and Joy" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://whispersoflhj.org/img/share.png" />
<meta name="theme-color" content="#587f89" />
<link rel="apple-touch-icon" href="../img/favicons/favicon-apple.png" />