From 67fc8c279931e7749e98b8666cd1126855f9b8a5 Mon Sep 17 00:00:00 2001 From: _lmmmmmm Date: Tue, 15 Oct 2024 01:21:00 +0800 Subject: [PATCH] fix: facebook meta key --- src/transform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transform.ts b/src/transform.ts index 9eb0637..b7962d8 100644 --- a/src/transform.ts +++ b/src/transform.ts @@ -6,7 +6,7 @@ import { camelcase, toAttrs } from './utils.ts'; export const transform = (options: Options): HtmlTagDescriptor[] => { const basicOGMetaAttrs = Object.entries(options.basic || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'property', 'og')); const twitterOGMetaAttrs = Object.entries(options.twitter || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'name', 'twitter')); - const facebookOGMetaAttrs = Object.entries(options.facebook || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'name', 'fb')); + const facebookOGMetaAttrs = Object.entries(options.facebook || {}).map(([name, content]) => toAttrs(camelcase(name), content, 'property', 'fb')); const attrs = [...basicOGMetaAttrs.flat(), ...twitterOGMetaAttrs.flat(3), ...facebookOGMetaAttrs.flat()];