Marketing sectionsPostList

Open in Create
Search
astronomic.dev

PostList

Free

To list posts as rows of text, newest first, with the dates in a column.

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

Examples

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

  • Static
  • Interactive
  • Framed

All writing

Five posts as rows of text on hairlines, newest first, the last row closed with a rule below. From a 42rem posts container the date and reading time take their own start column; below that they sit above the title. The dates print in the default "en" style (Oct 14, 2026); set locale for another language. A row shows no picture and no author; the last post has no excerpt.

main.astro

In German

locale="de" prints the dates as 14.10.2026, on a page (here, a wrapper) with lang="de". The <time datetime> stays 2026-10-14 in every language. The heading, the text and the view-all label are your own words, in the page's language.

locale.astro

Without dates

Four rows: a date and reading time, a date only, a reading time only, and neither. With neither, the title still sits in the second column from a 42rem posts container, so the titles line up.

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