Skip to content

Commit

Permalink
Merge pull request #17 from Lmmmmmm-bb/fix/facebook-meta-key
Browse files Browse the repository at this point in the history
fix: facebook meta key
  • Loading branch information
Lmmmmmm-bb authored Oct 14, 2024
2 parents 20e84f1 + 67fc8c2 commit ce5c045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()];

Expand Down

0 comments on commit ce5c045

Please sign in to comment.