← back to Designtradelive
views/partials/head.ejs
26 lines
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<%= typeof metaDescription !== 'undefined' ? metaDescription : 'DesignTradeLive — the live calendar of design industry trade shows and events: ICFF, NeoCon, KBIS, High Point Market, BDNY, Salone del Mobile, Maison&Objet, Heimtextil, and more.' %>">
<meta name="theme-color" content="#0c0c10">
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect width='64' height='64' rx='12' fill='%23c9a14a'/><text x='32' y='42' text-anchor='middle' font-family='Georgia,serif' font-size='34' font-weight='700' fill='%230c0c10'>D</text></svg>">
<script>
// Anti-flash theme init — must run before <body> paints.
(function () {
try {
var t = localStorage.getItem('dtl-theme');
if (!t) t = window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark';
document.documentElement.setAttribute('data-theme', t);
} catch (e) { document.documentElement.setAttribute('data-theme', 'dark'); }
})();
</script>
<!-- GA4 gtag (auto) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=<%= GA_ID %>"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '<%= GA_ID %>');
</script>
<!-- /GA4 gtag -->
<link rel="stylesheet" href="/styles.css">