Latest Posts
The LatestPosts component fetches and displays the most recent blog posts from your content collection.
Usage
import LatestPosts from '~/components/sections/LatestPosts.astro';
<LatestPosts
title="From the Blog"
count={3}
/>
Example
Recent Updates
Stay tuned with our latest news.
β’ Blog
Wormholes: Shortcuts in Spacetime
Understanding the bulk beings and the sphere.
Read More
β’ Blog
The Science of Gargantua
Exploring the physics behind the massive black hole in Interstellar.
Read More
Video
β’ Blog
Staying Behind: Brand's Choice
The lonely colonization of Edmundsβ Planet.
Read More
Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | block.title | The section heading. |
subtitle | string | block.subtitle | The subtext below the heading. |
viewAllText | string | blog.viewAll | Text for the βView Allβ link. |
count | number | 3 | Number of posts to display. |