Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

Articles Blocks for Astro

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

Give one story more space while keeping related stories in the same collection.

bunx --bun shadcn@latest add @gnostic/articles-1
npx shadcn@latest add @gnostic/articles-1
pnpm dlx shadcn@latest add @gnostic/articles-1

Place the lead story beside a smaller set of related articles.

bunx --bun shadcn@latest add @gnostic/articles-2
npx shadcn@latest add @gnostic/articles-2
pnpm dlx shadcn@latest add @gnostic/articles-2

Rows

Use rows when readers need to compare several article summaries.

bunx --bun shadcn@latest add @gnostic/articles-3
npx shadcn@latest add @gnostic/articles-3
pnpm dlx shadcn@latest add @gnostic/articles-3

Text grid

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

bunx --bun shadcn@latest add @gnostic/articles-4
npx shadcn@latest add @gnostic/articles-4
pnpm dlx shadcn@latest add @gnostic/articles-4

Editorial blog

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

bunx --bun shadcn@latest add @gnostic/blog-agency
npx shadcn@latest add @gnostic/blog-agency
pnpm dlx shadcn@latest add @gnostic/blog-agency
PropType
labelstring

Small section label.

Typestring
titlestring

Main heading text.

Typestring
accent?string

Optional italic heading text.

Typestring
description?string

Supporting copy.

Typestring
class?string

Classes for the root element.

Typestring
articles{ title: string description: string href: string date: string image: AgencyImage }[]

Articles with ISO dates.

Type{ title: string description: string href: string date: string image: AgencyImage }[]

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
npx shadcn@latest add @gnostic/content-journal-grid
pnpm dlx 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.