ASTRO攻略LABO ロゴ daito | FX & Prop Trading Top 2.3%
Docs / Latest Posts

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

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. |