Skip to content
Esc
↑↓navigate↵open⌘Jpreview

Articles Blocks for Astro

Astro article listings for posts, notes, and editorial collections.

Image grid

Show an image, summary, and byline for each article in a grid of up to three columns.

bunx --bun shadcn@latest add @gnostic/articles-image-grid

Featured story

Place the lead story above the related articles. On wide screens, its image sits beside its summary.

bunx --bun shadcn@latest add @gnostic/articles-featured-story

Compact grid

Show short article summaries in image cards. The grid fits up to four cards per row.

bunx --bun shadcn@latest add @gnostic/articles-compact-grid

Text grid

Use text cards when the titles and summaries carry the collection.

bunx --bun shadcn@latest add @gnostic/articles-text-grid

Editorial blog

Use this section for the blog part of a studio site.

bunx --bun shadcn@latest add @gnostic/blog-image-grid

See serif accent font setup when installing this section.

Journal grid

Supply your own content. The section uses the selected project preset.

bunx --bun shadcn@latest add @gnostic/content-journal-grid
PropType
contentJournalGridContent

Section content.

TypeJournalGridContent
class?string

Classes added to the root.

Typestring

Choose a articles layout

Choose a list or grid based on how many articles a reader must compare. Use consistent categories and dates so each card supplies the same kind of information.

Pass content from Astro

Pass an articles array with the fields required by the selected variant. The first variant includes title, description, category, optional href, image, and author data. Sort and paginate in the route or data layer before passing the array.

Responsive layout and images

Check mixed title lengths and missing author images at narrow widths. Use deliberate thumbnail crops and avoid downloading full-size lead images for every card. A responsive grid changes the layout; it does not fetch additional pages.

Compose the next section

Pair the listing with an Article detail page and Pagination when the route has several pages of results.