import fs from "fs"; import path from "path"; export interface SeoMeta { title: string; description: string; canonicalUrl: string; ogImage?: string; jsonLd?: Record; } export interface TemplateOptions { meta: SeoMeta; content: string; // HTML content to inject inside
assetTags: string; // ` : ""; return ` ${meta.title} ${ meta.ogImage ? `` : "" } ${assetTags} ${jsonLdScript}
${content}
`; }