-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docs): fix social images for now
- Loading branch information
1 parent
5acdece
commit 00229bf
Showing
11 changed files
with
10 additions
and
8 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,9 +1,11 @@ | ||
import slugify from 'slugify'; | ||
// import slugify from 'slugify'; | ||
|
||
import { PREVIEW_VERSION } from '../data/preview'; | ||
|
||
// For now dynamic social images are disabled | ||
// hard-coding a preview image based on platform until resolved | ||
export const getImagePath = (name: string) => { | ||
const slug = slugify(name.replace(/\W+/g, ' ')); | ||
|
||
return `/previews/${slug.length > 0 ? slug : 'react'}-${PREVIEW_VERSION}.png`; | ||
// const slug = slugify(name.replace(/\W+/g, ' ')); | ||
// return `/previews/${slug.length > 0 ? slug : 'react'}-${PREVIEW_VERSION}.png`; | ||
return `/previews/${name}-${PREVIEW_VERSION}.png`; | ||
}; |