diff options
Diffstat (limited to 'src/components/BlockQuote.astro')
| -rw-r--r-- | src/components/BlockQuote.astro | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/components/BlockQuote.astro b/src/components/BlockQuote.astro new file mode 100644 index 0000000..83a2409 --- /dev/null +++ b/src/components/BlockQuote.astro @@ -0,0 +1,17 @@ +--- +export interface Props { + refs?: string; + href?: string; +} +const { refs, href } = Astro.props; +--- +<blockquote class="qt"> + { + href ? ( + <header><cite><a href={href} rel="noopener noreferrer" target="_blank">{refs}</a></cite></header> + ) : refs ? ( + <header><cite>{refs}</cite></header> + ) : null + } + <slot /> +</blockquote> |
