@paroicms/server
Version:
The ParoiCMS server
11 lines • 367 B
JavaScript
const articleJsonLdTypes = new Set(["Article", "BlogPosting"]);
export function deriveOgTypeFromJsonLdType(jsonLdType) {
if (jsonLdType === undefined)
return;
if (articleJsonLdTypes.has(jsonLdType))
return "article";
if (jsonLdType === "Product")
return "product";
return "website";
}
//# sourceMappingURL=derive-og-type.js.map