Skip to content

Commit

Permalink
Support CodePen embed
Browse files Browse the repository at this point in the history
  • Loading branch information
Suzu-Gears committed Nov 13, 2023
1 parent 0e3d50d commit a7234da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/notion-blocks/Embed.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import {
isTikTokURL,
isInstagramURL,
isPinterestURL,
isCodePenURL,
} from '../../lib/blog-helpers.ts'
import Bookmark from './Bookmark.astro'
import TweetEmbed from './TweetEmbed.astro'
import TikTokEmbed from './TikTokEmbed.astro'
import InstagramEmbed from './InstagramEmbed.astro'
import PinterestEmbed from './PinterestEmbed.astro'
import CodePenEmbed from './CodePenEmbed.astro'
export interface Props {
block: interfaces.Block
Expand All @@ -37,6 +39,8 @@ try {
<InstagramEmbed url={url} />
) : isPinterestURL(url) ? (
<PinterestEmbed url={url} />
) : isCodePenURL(url) ? (
<CodePenEmbed url={url} />
) : (
<Bookmark block={block} urlMap={urlMap} />
)
Expand Down

0 comments on commit a7234da

Please sign in to comment.