mirror of
https://github.com/lbr77/blog-astro.git
synced 2026-04-09 00:19:12 +00:00
feat: new
This commit is contained in:
@@ -10,7 +10,7 @@ export interface Props {
|
||||
}
|
||||
|
||||
const { block } = Astro.props
|
||||
|
||||
console.log(block)
|
||||
const target = block.Bookmark || block.LinkPreview || block.Embed
|
||||
const urlString = target?.Url
|
||||
|
||||
@@ -37,7 +37,7 @@ try {
|
||||
<div class="bookmark">
|
||||
<a href={url.toString()} target="_blank" rel="noopener noreferrer">
|
||||
<div>
|
||||
<div>{target?.Url}</div>
|
||||
<Caption richTexts={block.Bookmark?.Caption ?? []} />
|
||||
<div class="muted">{url.hostname}</div>
|
||||
<div>
|
||||
<div>
|
||||
@@ -51,7 +51,7 @@ try {
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<Caption richTexts={block.Bookmark?.Caption ?? []} />
|
||||
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user