Skip to content

Added og image support through Remix meta - #116

Open
jamesqquick wants to merge 1 commit into
ahaywood:mainfrom
jamesqquick:bug-og-image
Open

Added og image support through Remix meta#116
jamesqquick wants to merge 1 commit into
ahaywood:mainfrom
jamesqquick:bug-og-image

Conversation

@jamesqquick

Copy link
Copy Markdown
Collaborator

GitHub Issue ID: 115

Feature description

Add support for OG images using the Remix metadata.

Solution description

Use the V2_MetaFunction to define meta properties`. Moved this to the root file so that it applies to every page. Then added overrides inside of the individual episode pages.

export const meta: V2_MetaFunction = () => {
  return [
    { title: 'Compressed.fm' },
    {
      name: 'description',
      content:
        'A weekly podcast, hosted by Amy Dutton and James Q Quick, all about web design and development with a little bit of zest.',
    },
    {
      name: 'og:image',
      content: '/images/podcast-cover.jpg',
    },
    {
      name: 'og:image:alt',
      content: 'Compressed.fm Podcast Cover',
    },
  ];
};

Output Screenshots

CleanShot 2023-10-27 at 13 59 42

Address affected and ensured

@vercel

vercel Bot commented Oct 27, 2023

Copy link
Copy Markdown

Someone is attempting to deploy a commit to a Personal Account owned by @ahaywood on Vercel.

@ahaywood first needs to authorize it.

@jamesqquick jamesqquick linked an issue Oct 27, 2023 that may be closed by this pull request
1 task
@jamesqquick
jamesqquick requested a review from ahaywood October 27, 2023 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: OG Image Isn't Set Appropriately

1 participant