aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/BlockQuote.astro
diff options
context:
space:
mode:
authorYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-06-18 23:19:10 +0900
committerYasutake Yohei <61961825+yasutakeyohei@users.noreply.github.com>2026-06-18 23:19:10 +0900
commit5bc1e63756cae6974430f1e6cf1a4d5e88f5b9cc (patch)
tree46ab1a541403d680fe1719da941d7702159fd453 /src/components/BlockQuote.astro
Initial commit
Diffstat (limited to 'src/components/BlockQuote.astro')
-rw-r--r--src/components/BlockQuote.astro17
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>