Marketing sectionsPosts

Open in Create
Search
astronomic.dev

Posts

Free

To build your own blog list: a section heading and posts, each with a title, a date and a link. For a ready layout, use PostGrid or PostList.

File
Posts.astro
Group
Marketing sections
Kind
Static: no JavaScript
Examples
1
import Posts from "@astronomic-dev/ui/components/Posts.astro";

Examples

Drag the orange handle to set the width. Frames get real breakpoints.

  • Static
  • Interactive
  • Framed

Slots

The section is a shell: the eyebrow, the heading and the text always show in that order, then the list of posts in the default slot, one PostCard (or PostRow) in an <li> each, then the view-all link. The shell sets the type and the gaps; the recipes lay out the list. PostGrid and PostList are recipes built on it, and Pro adds PostFeatured and PostCompact. childHeadingTag() in lib/heading.ts gives the titles' heading level.

main.astro
Minimal · Light

Waitlist

Be first in line

Join the waitlist and we'll email you the moment it's out.

You'll also get our newsletter: new themes, plugins and guides. Unsubscribe any time.