diff --git a/av-installation-dmv/index.html b/av-installation-dmv/index.html index b1837d7..dc79f51 100644 --- a/av-installation-dmv/index.html +++ b/av-installation-dmv/index.html @@ -16,7 +16,7 @@ - + `; +for (const g of GUIDES) { + const url = `/guides/${g.slug}/`; + const ld = [ + { "@type": "TechArticle", "@id": abs(url) + "#article", headline: g.title, description: g.metaDescription, image: abs(g.hero), url: abs(url), mainEntityOfPage: abs(url), + datePublished: g.datePublished, dateModified: g.datePublished, inLanguage: "en-US", author: { "@id": SITE + "/#person" }, publisher: { "@id": BUSINESS_ID }, about: ["SMPTE ST 2110", "SDI to IP migration", "PTP / SMPTE ST 2059", "SMPTE ST 2022-7", "AMWA NMOS"] }, + { "@type": "FAQPage", mainEntity: g.faq.map(([q, a]) => ({ "@type": "Question", name: q, acceptedAnswer: { "@type": "Answer", text: a } })) }, + ]; + const content = g.body.replace("__FAQ__", g.faq.map(([q, a]) => `
${esc(q)}
${esc(a)}
`).join("")).replace(/([\s\S]*?)<\/table>/, '
$1
'); + const body = `${GUIDE_STYLE} +
+
${esc(g.eyebrow)}

${esc(g.h1)}

${esc(g.lede)}

+
+
${content}
`; + write(url + "index.html", page({ url, title: g.metaTitle, description: g.metaDescription, image: g.hero, ld, body, breadcrumb: [["Home", "/"], ["Guides", "/guides/"], [g.h1, url]] })); +} +write("guides/index.html", page({ url: "/guides/", title: "Broadcast Engineering Guides | Wild Dragon", description: "Practitioner guides from Wild Dragon on SMPTE ST 2110 migration, broadcast IP networks, timing, and facility commissioning.", + image: "images/photos/rack-build-ultrix.jpg", ld: [], breadcrumb: [["Home", "/"], ["Guides", "/guides/"]], + body: `
Guides

Broadcast engineering guides

Practitioner-written design and commissioning guides for broadcast and AV facilities.

+
` })); + // ── location / keyword pages ─────────────────────────────────────────────── for (const l of LOCATION_PAGES) { const url = `/${l.slug}/`; @@ -190,6 +216,7 @@ for (const l of LOCATION_PAGES) { ${l.subpages ? `

See also: ${l.subpages.map((sl) => LOCATION_PAGES.find((x) => x.slug === sl)).filter(Boolean).map((x) => `${esc(x.title)}`).join(" · ")}

` : ""}
${l.faq.map(([q, a]) => `
${esc(q)}
${esc(a)}
`).join("")}
${related.length ? `

Related projects

` : ""} + ${(l.guides || []).length ? `

Related guides

` : ""}
Request a consultation
`; write(url + "index.html", page({ url, title: l.metaTitle, description: l.metaDescription, image: l.hero, ld, body, breadcrumb: [["Home", "/"], [l.title, url]] })); @@ -238,7 +265,7 @@ ${L.sections.map(([h, t]) => `

${h}

${t}

`).join("\n" } // ── sitemap ──────────────────────────────────────────────────────────────── -const urls = [["/", "1.0"], ["/services/", "0.9"], ...SERVICE_PAGES.map((s) => [`/services/${s.slug}/`, "0.9"]), ...LOCATION_PAGES.map((l) => [`/${l.slug}/`, "0.9"]), ["/projects/", "0.7"], ...PROJECTS.map((p) => [`/projects/${p.slug}/`, "0.7"]), ["/privacy/", "0.2"], ["/terms/", "0.2"]]; +const urls = [["/", "1.0"], ["/services/", "0.9"], ["/guides/", "0.8"], ...GUIDES.map((g) => [`/guides/${g.slug}/`, "0.8"]), ...SERVICE_PAGES.map((s) => [`/services/${s.slug}/`, "0.9"]), ...LOCATION_PAGES.map((l) => [`/${l.slug}/`, "0.9"]), ["/projects/", "0.7"], ...PROJECTS.map((p) => [`/projects/${p.slug}/`, "0.7"]), ["/privacy/", "0.2"], ["/terms/", "0.2"]]; write("sitemap.xml", ` ${urls.map(([u, pr]) => ` ${abs(u)}${TODAY}${pr}`).join("\n")} diff --git a/components.jsx b/components.jsx index f2dc5bb..d9a168c 100644 --- a/components.jsx +++ b/components.jsx @@ -101,7 +101,7 @@ function Navigation() {