Closed bennycode closed 11 months ago
Hey Igor, I like your PostExcerpt component but by going through the readme I thought I can use it like this:
PostExcerpt
<PostExcerpt post={post} words={50} smartEllipsis={true} renderer={'Html'} />
Instead I had to use:
<PostExcerpt post={post} words={50} smartEllipsis={true} renderer={PropRenderer.Html} />
With an import like this:
import PostExcerpt, {PropRenderer} from '@igor.dvlpr/astro-post-excerpt'
Which is why I think explicitly listing the possible values make sense. WDYT?
@bennycode, thanks again for your contribution. 😁👍🏼
Hey Igor, I like your
PostExcerpt
component but by going through the readme I thought I can use it like this:Instead I had to use:
With an import like this:
Which is why I think explicitly listing the possible values make sense. WDYT?