Skip to content

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

@daguitosama

Description

@daguitosama

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 or support for especific Social Media Cards like the ones from Twitter or Facebook.

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

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions