PreStyling Layouts & Components
This commit is contained in:
10
src/components/post/Header/Cover.astro
Normal file
10
src/components/post/Header/Cover.astro
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import Figure from '@/components/media/Figure.astro'
|
||||
import type { Article } from '@/lib/site/types'
|
||||
|
||||
type Props = { cover: Article['summary']['cover'] }
|
||||
|
||||
const { image, ...rest } = Astro.props.cover
|
||||
---
|
||||
|
||||
{image && <Figure image={image} {...rest} size="full" eager />}
|
||||
Reference in New Issue
Block a user