code-forge-io / code-forge-io/seo-tools

Could support for Open Graph - Social Media Tags be added ?

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
94
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Hi the lib looks awesome, handling a bunch of things we need to get rolling on the page metadata. After an examination of the README, I noticed there is no mention for [Open Graph Metatags](https://ogp.me/) or support for especific Social Media Cards like the ones from [Twitter](https://developer.x.com/en/docs/x-for-websites/cards/overview/markup) or [Facebook](https://developers.facebook.com/docs/sharing/webmasters/#markup).

So I want to ask if this could be added to the library, sticking to the lib style, in a way like:

```tsx
import { xCard, facebookCard } from '@forge42/seo-tools/social-cards';

//...
export const meta: MetaFunction = ({ data }: MetaArgs) => {
return [
{ title: data.title},
xCard({...theThingsGoesInHere}),
facebookCard({...theThingsGoesInHere})
];
};
```

If you think this might be usefull please let me know. I keep forgeting and relearning do this tags everytime, I think this might be usefull for a bunch of folks. And since we are doing Remix and RR7 websites all day long, it makes sense to have this feature on a lib like this. If you think is ok, I would like to make the PR.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.