Enhance global SEO metadata defaults with per-page titles/descriptions and social tags

This commit is contained in:
gator 2026-03-11 01:37:25 +00:00
parent a6debb8ef4
commit 65ba746938

View file

@ -3,11 +3,65 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><%= (typeof pageTitle !== 'undefined' && pageTitle) ? `${pageTitle} | ${config?.brand?.name || 'AutoTQ'}` : (config?.brand?.name || 'AutoTQ') %></title>
<meta
name="description"
content="<%= (typeof metaDescription !== 'undefined' && metaDescription) ? metaDescription : (config?.brand?.tagline || '') %>"
/>
<%
const brandName = config?.brand?.name || 'AutoTQ';
const defaultSiteUrl = 'https://autotq-modern.sites.corben.world';
const pageMeta = {
home: {
title: 'Automatic Tourniquet Readiness for Emergency Response',
description: 'AutoTQ by Golden Hour Medical focuses on practical hemorrhage-response readiness with one-button activation and guided operation for high-stress moments.'
},
'about-autotq': {
title: 'About AutoTQ Technology and Mission',
description: 'Learn how AutoTQ is designed for simpler bleeding-control response, including two-step application, guided prompts, and referenced research context.'
},
about: {
title: 'About AutoTQ Technology and Mission',
description: 'Learn how AutoTQ is designed for simpler bleeding-control response, including two-step application, guided prompts, and referenced research context.'
},
company: {
title: 'Company Overview | Golden Hour Medical',
description: 'Explore Golden Hour Medicals mission, operating focus, and leadership team supporting AutoTQ emergency preparedness initiatives.'
},
research: {
title: 'Research Sources and Evidence References',
description: 'Review AutoTQ research references, linked source pages, and cautious evidence-oriented summaries for first-time-user and occlusion findings.'
},
literature: {
title: 'Literature and PDF Resources',
description: 'Access AutoTQ literature, booklet, IFU, flyer, and related reference materials for deployment and training planning.'
},
testimonials: {
title: 'Testimonials from Safety and Medical Professionals',
description: 'Read real AutoTQ testimonials from emergency, EMS, and public-safety stakeholders discussing usability and deployment readiness.'
},
news: {
title: 'AutoTQ News and Press Coverage',
description: 'See recent AutoTQ media mentions, interviews, and press links from external news and healthcare/public-safety sources.'
},
contact: {
title: 'Contact AutoTQ',
description: 'Contact Golden Hour Medical to discuss AutoTQ deployment planning, organizational readiness, and implementation support.'
}
};
const resolvedMeta = pageMeta[(typeof pageName !== 'undefined' && pageName) ? pageName : 'home'] || pageMeta.home;
const resolvedTitle = (typeof pageTitle !== 'undefined' && pageTitle) ? pageTitle : resolvedMeta.title;
const resolvedDescription = (typeof metaDescription !== 'undefined' && metaDescription) ? metaDescription : resolvedMeta.description;
const canonicalUrl = `${defaultSiteUrl}${((typeof pageName !== 'undefined' && pageName && pageName !== 'home') ? `/${pageName === 'about' ? 'about-autotq' : pageName}` : '')}`;
%>
<title><%= `${resolvedTitle} | ${brandName}` %></title>
<meta name="description" content="<%= resolvedDescription %>" />
<link rel="canonical" href="<%= canonicalUrl %>" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="<%= brandName %>" />
<meta property="og:title" content="<%= `${resolvedTitle} | ${brandName}` %>" />
<meta property="og:description" content="<%= resolvedDescription %>" />
<meta property="og:url" content="<%= canonicalUrl %>" />
<meta property="og:image" content="<%= config?.assets?.images?.hero || config?.assets?.logo || '' %>" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="<%= `${resolvedTitle} | ${brandName}` %>" />
<meta name="twitter:description" content="<%= resolvedDescription %>" />
<meta name="twitter:image" content="<%= config?.assets?.images?.hero || config?.assets?.logo || '' %>" />
<link rel="stylesheet" href="/css/style.css" />
</head>
<% const _pageName = (typeof pageName !== 'undefined' && pageName) ? pageName : 'default'; %>