aboutsummaryrefslogtreecommitdiff
path: root/src/components/BlockQuote.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/BlockQuote.js')
-rw-r--r--src/components/BlockQuote.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/components/BlockQuote.js b/src/components/BlockQuote.js
index 18eac100..605ae03d 100644
--- a/src/components/BlockQuote.js
+++ b/src/components/BlockQuote.js
@@ -4,9 +4,17 @@ import styles from './BlockQuote.module.css';
import { Icon } from '@iconify/react'; // Import the entire Iconify library.
export default function BlockQuote({children, refs, href}) {
+ if (href) {
+ return (
+ <blockquote className={styles.qt}>
+ <header><cite><ExternalLink href={href}>{refs}</ExternalLink></cite></header>
+ {children}
+ </blockquote>
+ );
+ }
return (
<blockquote className={styles.qt}>
- <header><cite><ExternalLink href={href}>{refs}</ExternalLink></cite></header>
+ <header><cite>{refs}</cite></header>
{children}
</blockquote>
);