Skip to content

Instantly share code, notes, and snippets.

@thinkjrs
Created January 10, 2025 10:29
Show Gist options
  • Save thinkjrs/b579376905b10bf5f9b18fd1bb7c7210 to your computer and use it in GitHub Desktop.
Save thinkjrs/b579376905b10bf5f9b18fd1bb7c7210 to your computer and use it in GitHub Desktop.
Next.js Metadata object dummy stub
export const metadata = {
title: '', // Page title
description: '', // Description of the page
openGraph: {
title: '', // Open Graph title
description: '', // Open Graph description
url: '', // URL of the page
images: [], // Array of image URLs or image objects
type: '', // Type of Open Graph content (e.g., 'website', 'article')
locale: '', // Locale of the page
},
twitter: {
card: '', // Twitter card type (e.g., 'summary', 'summary_large_image')
site: '', // Twitter handle for the site
creator: '', // Twitter handle for the content creator
},
icons: {
icon: '', // Path to favicon
shortcut: '', // Path to shortcut icon
apple: '', // Path to Apple touch icon
other: [], // Array of additional icons
},
themeColor: '', // Theme color of the page (e.g., for mobile browsers)
viewport: '', // Viewport settings for responsive design
robots: {
index: true, // Whether search engines should index the page
follow: true, // Whether search engines should follow links on the page
noarchive: false, // Whether the page should not be archived
},
alternates: {
canonical: '', // Canonical URL for the page
languages: {}, // Language-specific alternate URLs
},
manifest: '', // Path to the web app manifest file
verification: {
google: '', // Google site verification token
bing: '', // Bing site verification token
yandex: '', // Yandex site verification token
other: {}, // Additional verification tokens
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment