--- // figure 块:图片(Astro 图片管线,宽度自适应;caption 图注) import { Image } from 'astro:assets'; import type { ResolvedBlock } from '../../lib/page-blocks'; interface Props { block: Extract; } const { block } = Astro.props; ---
{block.alt} {block.caption &&
{block.caption}
}