mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-04-24 03:00:09 -04:00
Change the default share image for OpenGraph and Twitter cards
Add the new image in packages/web/public/assets Update the default canonical URL to match current pattern i.e. metagame.wtf instead of my.metagame.wtf Bit of commenting around usage of HeadComponent
This commit is contained in:
@@ -10,10 +10,23 @@ export type HeadMetaProps = {
|
||||
};
|
||||
|
||||
export const HeadComponent: React.FC<HeadMetaProps> = ({
|
||||
/**
|
||||
* Defaults for the site meta tags and shares via Open Graph tags, and Twitter cards
|
||||
* Can/should be customised per page
|
||||
* e.g.
|
||||
* <HeadComponent
|
||||
title="MetaGame Seeds Page"
|
||||
description="..."
|
||||
url="https://metagame.wtf/seeds"
|
||||
/>
|
||||
* The share image is in `/packages/web/public/assets`, so new images are available
|
||||
* for testing locally or on deployments without having to mess about with host names
|
||||
* ref https://nextjs.org/docs/basic-features/static-file-serving
|
||||
*/
|
||||
title = 'MetaGame',
|
||||
description = 'MetaGame is a Massive Online Coordination Game! MetaGame is any approach to a game that transcends or operates outside of the prescribed rules of the game, uses external factors to affect the game, or goes beyond the supposed limits or environment set by the game.',
|
||||
url = 'https://metagame.wtf/',
|
||||
img = 'https://metagame.wtf/_next/image?url=%2Fassets%2Flogo.png&w=1920&q=75',
|
||||
img = '/assets/MG-share-image_octopus-in-space.jpg',
|
||||
cardStyle = 'summary',
|
||||
}) => (
|
||||
<Head>
|
||||
|
||||
BIN
packages/web/public/assets/MG-share-image_octopus-in-space.jpg
Normal file
BIN
packages/web/public/assets/MG-share-image_octopus-in-space.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 109 KiB |
Reference in New Issue
Block a user