-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add missing tags to og checker (#113)
- Loading branch information
Showing
2 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,21 @@ | ||
export const META_TAGS = { | ||
"og:title": "The title of your object as it should appear within the graph.", | ||
"og:description": "A one to two sentence description of your object.", | ||
"og:site_name": "The name which should be displayed for the overall site.", | ||
"og:url": | ||
"The canonical URL of your object that will be used as its permanent ID in the graph.", | ||
"og:type": "The type of your object, e.g., 'video.movie'.", | ||
"og:image": | ||
"An image URL which should represent your object within the graph.", | ||
"og:url": | ||
"The canonical URL of your object that will be used as its permanent ID in the graph.", | ||
"og:description": "A one to two sentence description of your object.", | ||
"og:site_name": "The name which should be displayed for the overall site.", | ||
} as const; | ||
|
||
export const REQUIRED_META_TAGS: MetaTags[] = [ | ||
"og:title", | ||
"og:type", | ||
"og:image", | ||
"og:url", | ||
]; | ||
|
||
export const META_KEYS = Object.keys(META_TAGS) as MetaTags[]; | ||
|
||
export type MetaTags = keyof typeof META_TAGS; |