---
title: Articles Blocks for Astro
description: "Astro article listings for posts, notes, and editorial collections."
seo:
    title: "Astro Articles blocks: examples and source"
sidebar:
    label: "Articles"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
mode: wide
---

<span id="featured-grid"></span>

## Image grid

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

```astro
---
import ArticlesImageGrid from "@/components/blocks/articles/articles-image-grid.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<ArticlesImageGrid
  title="gnostic AI field notes"
  description="Three sample workflows follow a ticket, a reply, and an invoice from intake to review."
  articles={[
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Request routing",
      title: "How to test a ticket routing rule",
      href: "/blocks/article#image-header",
      description:
        "Run a billing request, a setup question, and an ambiguous ticket through the same rule. Record where each one goes.",
      author: {
        image: agentAvatars[0],
        initials: "LM",
        name: "Leila Moreno",
        date: "September 14, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Reply review",
      title: "How to review an AI-drafted reply",
      href: "/blocks/article#centered-header",
      description:
        "Read the original question alongside the draft and its sources. Decide whether the reply is ready to send.",
      author: {
        image: agentAvatars[1],
        initials: "OP",
        name: "Owen Patel",
        date: "September 9, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Document intake",
      title: "When an invoice total needs a second look",
      href: "/blocks/article#editorial-article",
      description:
        "Compare the draft record with the invoice and purchase order. Send a mismatch to the accounts team.",
      author: {
        image: agentAvatars[2],
        initials: "NC",
        name: "Nadia Chen",
        date: "August 26, 2026",
      },
    },
  ]}
/>
```

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

<span id="featured-sidebar"></span>

## Featured story

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

```astro
---
import ArticlesFeaturedStory from "@/components/blocks/articles/articles-featured-story.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<ArticlesFeaturedStory
  title="Inside a support automation pilot"
  description="Start with the routing test, then explore the other gnostic AI field notes and planning questions."
  featured={{
    image: {
      src: placeholderImage,
      alt: "Sample image placeholder",
    },
    category: "Request routing",
    title: "How to test a ticket routing rule",
    href: "/blocks/article#image-header",
    description:
      "Run a billing request, a setup question, and an ambiguous ticket through the same rule. Record where each one goes.",
    author: {
      image: agentAvatars[3],
      initials: "LM",
      name: "Leila Moreno",
      date: "September 14, 2026",
    },
  }}
  articles={[
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Reply review",
      title: "How to review an AI-drafted reply",
      href: "/blocks/article#centered-header",
      description:
        "Read the original question alongside the draft and its sources. Decide whether the reply is ready to send.",
      author: {
        image: agentAvatars[4],
        initials: "OP",
        name: "Owen Patel",
        date: "September 9, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Document intake",
      title: "When an invoice total needs a second look",
      href: "/blocks/article#editorial-article",
      description:
        "Compare the draft record with the invoice and purchase order. Send a mismatch to the accounts team.",
      author: {
        image: agentAvatars[5],
        initials: "NC",
        name: "Nadia Chen",
        date: "August 26, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Pilot FAQ",
      title: "Which task makes a good first pilot?",
      href: "/blocks/faqs#split",
      description:
        "Use these planning questions to choose a repeated task, identify its owner, and agree on a result.",
      author: {
        image: agentAvatars[6],
        initials: "EB",
        name: "Ellis Brooks",
        date: "August 18, 2026",
      },
    },
  ]}
/>
```

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

<span id="rows"></span>

## Compact grid

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

```astro
---
import ArticlesCompactGrid from "@/components/blocks/articles/articles-compact-grid.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<ArticlesCompactGrid
  title="Field notes from a gnostic AI pilot"
  articles={[
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Request routing",
      title: "How to test a ticket routing rule",
      href: "/blocks/article#image-header",
      description:
        "Run a billing request, a setup question, and an ambiguous ticket through the same rule. Record where each one goes.",
      author: {
        image: agentAvatars[7],
        initials: "LM",
        name: "Leila Moreno",
        date: "September 14, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Reply review",
      title: "How to review an AI-drafted reply",
      href: "/blocks/article#centered-header",
      description:
        "Read the original question alongside the draft and its sources. Decide whether the reply is ready to send.",
      author: {
        image: agentAvatars[8],
        initials: "OP",
        name: "Owen Patel",
        date: "September 9, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Document intake",
      title: "When an invoice total needs a second look",
      href: "/blocks/article#editorial-article",
      description:
        "Compare the draft record with the invoice and purchase order. Send a mismatch to the accounts team.",
      author: {
        image: agentAvatars[0],
        initials: "NC",
        name: "Nadia Chen",
        date: "August 26, 2026",
      },
    },
    {
      image: {
        src: placeholderImage,
        alt: "Sample image placeholder",
      },
      category: "Pilot FAQ",
      title: "Which task makes a good first pilot?",
      href: "/blocks/faqs#split",
      description:
        "Use these planning questions to choose a repeated task, identify its owner, and agree on a result.",
      author: {
        image: agentAvatars[1],
        initials: "EB",
        name: "Ellis Brooks",
        date: "August 18, 2026",
      },
    },
  ]}
/>
```

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

## Text grid

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

```astro
---
import ArticlesTextGrid from "@/components/blocks/articles/articles-text-grid.astro"
import { agentAvatars } from "@/lib/agent-avatars"
---

<ArticlesTextGrid
  title="The gnostic AI pilot reading list"
  description="Browse short field notes and questions about planning, testing, and handing over an automation project."
  articles={[
    {
      category: "Request routing",
      title: "How to test a ticket routing rule",
      href: "/blocks/article#image-header",
      description:
        "Run a billing request, a setup question, and an ambiguous ticket through the same rule. Record where each one goes.",
      author: {
        image: agentAvatars[2],
        initials: "LM",
        name: "Leila Moreno",
        date: "September 14, 2026",
      },
    },
    {
      category: "Reply review",
      title: "How to review an AI-drafted reply",
      href: "/blocks/article#centered-header",
      description:
        "Read the original question alongside the draft and its sources. Decide whether the reply is ready to send.",
      author: {
        image: agentAvatars[3],
        initials: "OP",
        name: "Owen Patel",
        date: "September 9, 2026",
      },
    },
    {
      category: "Document intake",
      title: "When an invoice total needs a second look",
      href: "/blocks/article#editorial-article",
      description:
        "Compare the draft record with the invoice and purchase order. Send a mismatch to the accounts team.",
      author: {
        image: agentAvatars[4],
        initials: "NC",
        name: "Nadia Chen",
        date: "August 26, 2026",
      },
    },
    {
      category: "Pilot FAQ",
      title: "Which task makes a good first pilot?",
      href: "/blocks/faqs#split",
      description:
        "Use these planning questions to choose a repeated task, identify its owner, and agree on a result.",
      author: {
        image: agentAvatars[5],
        initials: "EB",
        name: "Ellis Brooks",
        date: "August 18, 2026",
      },
    },
    {
      category: "Measurement FAQ",
      title: "What should a support pilot measure?",
      href: "/blocks/faqs#stacked-panels",
      description:
        "Choose a baseline for ticket transfers and agree on a reason to pause before the pilot starts.",
      author: {
        image: agentAvatars[6],
        initials: "SB",
        name: "Samira Bell",
        date: "August 7, 2026",
      },
    },
    {
      category: "Handoff FAQ",
      title: "Who owns the workflow after the pilot?",
      href: "/blocks/faqs#editorial-faqs",
      description:
        "Decide who can change the routing rule and which test requests to run after an edit.",
      author: {
        image: agentAvatars[7],
        initials: "TI",
        name: "Tomas Ivers",
        date: "July 22, 2026",
      },
    },
  ]}
/>
```

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

## Editorial blog

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

```astro
---
import Section from "@/components/blocks/blog/blog-image-grid/blog-image-grid.astro"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import hall from "../../../src/assets/images/entrance-hall.png"
import field from "../../../src/assets/images/open-field-illustration.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const hallUrl = (await getImage({ src: hall, width: 1200, format: "webp" })).src
const fieldUrl = (await getImage({ src: field, width: 1200, format: "webp" }))
  .src
const section = {
  label: "gnostic AI field notes",
  title: "Three workflows",
  accent: "to try in a pilot",
  articles: [
    {
      title: "How to test a ticket routing rule",
      description:
        "Run a billing request, a setup question, and an ambiguous ticket through the same rule. Record where each one goes.",
      href: "/blocks/article#image-header",
      date: "2026-09-14",
      image: {
        src: lakeUrl,
        alt: "Mountain ridge beyond a lake",
      },
    },
    {
      title: "How to review an AI-drafted reply",
      description:
        "Read the original question alongside the draft and its sources. Decide whether the reply is ready to send.",
      href: "/blocks/article#centered-header",
      date: "2026-09-09",
      image: {
        src: hallUrl,
        alt: "An illustrated entrance hall",
      },
    },
    {
      title: "When an invoice total needs a second look",
      description:
        "Compare the draft record with the invoice and purchase order. Send a mismatch to the accounts team.",
      href: "/blocks/article#editorial-article",
      date: "2026-08-26",
      image: {
        src: fieldUrl,
        alt: "Illustration of an open field",
      },
    },
  ],
}
---

<Section {...section} />
```

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

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/blog/blog-image-grid/types.ts"
    name="BlogImageGridProps"
/>

See [serif accent font setup](/ui/docs/installation#serif-accent-fonts-for-editorial-blocks) when installing this section.

## Journal grid

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

```astro
---
import Block from "@/components/blocks/content/content-journal-grid/content-journal-grid.astro"
import type { JournalGridContent } from "@/components/blocks/content/content-journal-grid/types"
import { getImage } from "astro:assets"
import lake from "../../../src/assets/images/mountain-beyond-lake-scene.png"
import hall from "../../../src/assets/images/entrance-hall.png"
import field from "../../../src/assets/images/open-field-illustration.png"

const lakeUrl = (await getImage({ src: lake, width: 1200, format: "webp" })).src
const hallUrl = (await getImage({ src: hall, width: 1200, format: "webp" })).src
const fieldUrl = (await getImage({ src: field, width: 1200, format: "webp" }))
  .src
const content = {
  posts: [
    {
      title: "How to test a ticket routing rule",
      href: "/blocks/article#image-header",
      date: "2026-09-14",
      image: {
        src: lakeUrl,
        alt: "Mountain ridge beyond a lake",
      },
      label: "Request routing",
    },
    {
      title: "How to review an AI-drafted reply",
      href: "/blocks/article#centered-header",
      date: "2026-09-09",
      image: {
        src: hallUrl,
        alt: "An illustrated entrance hall",
      },
      label: "Reply review",
    },
    {
      title: "When an invoice total needs a second look",
      href: "/blocks/article#editorial-article",
      date: "2026-08-26",
      image: {
        src: fieldUrl,
        alt: "Illustration of an open field",
      },
      label: "Document intake",
    },
  ],
} satisfies JournalGridContent
---

<Block {content} />
```

```sh
bunx --bun shadcn@latest add @gnostic/content-journal-grid
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/content/content-journal-grid/types.ts"
    name="JournalGridProps"
/>

## 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](/ui/blocks/article) detail page and [Pagination](/ui/components/pagination) when the route has several pages of results.
