---
title: Article Blocks for Astro
description: "Astro article layouts with author details, lead images, and reading content."
seo:
    title: "Astro Article blocks: examples and source"
sidebar:
    label: "Article"
related:
    - /blocks
    - /components
    - /docs/astro-business-websites
---

## Image header

Lead with an image, then keep the author details close to the article title.

```astro
---
import Article1Block from "@/components/blocks/article/article-1.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Article1Block
  title="What belongs in a weekly planning review?"
  description="A short review can connect unfinished tasks with the decisions your team needs to make next."
  author={{
    image: agentAvatars[0],
    initials: "LM",
    name: "Leila Moreno",
    date: "September 14, 2026",
  }}
  image={{
    src: placeholderImage,
    alt: "Sample image placeholder",
  }}
>
  <p>
    Start by checking the tasks that remain open. A task can be unfinished
    because the work is large, a question is unanswered, or the next step has no
    owner. Record the reason before changing the date.
  </p>
  <p>
    Ask the team to choose a small number of next actions. Give each action an
    owner and write down the information that person needs. Keep new ideas in a
    separate list until the current work has a clear direction.
  </p>
  <p>
    Finish by reading the decisions aloud. A teammate who missed the discussion
    should be able to use the notes without asking the same questions again.
    Review those notes at the start of the next meeting.
  </p>
</Article1Block>
```

```sh
bunx --bun shadcn@latest add @gnostic/article-1
```

## Centered header

Center the title and author details before the reading column.

```astro
---
import Article2Block from "@/components/blocks/article/article-2.astro"
import { agentAvatars } from "@/lib/agent-avatars"
import placeholderImage from "@/assets/placeholder.webp"
---

<Article2Block
  title="How an editor prepares a new issue"
  description="An editorial plan starts with reader questions, a clear brief, and time to check the details."
  author={{
    image: agentAvatars[1],
    initials: "LM",
    name: "Leila Moreno",
    date: "September 14, 2026",
    readingTime: "6 min read",
  }}
  image={{
    src: placeholderImage,
    alt: "Sample image placeholder",
  }}
>
  <p>
    Start an issue by collecting questions from readers. Group the questions by
    topic and choose one that the next story can answer clearly. Leave the
    remaining ideas in the editorial list.
  </p>
  <p>
    Prepare a brief with the reader question, the planned sources, and the
    checks the draft will need. Give the writer a date for the first review and
    explain which details are still uncertain.
  </p>
  <p>
    Read the draft for meaning before changing individual sentences. Check each
    claim against its source and make sure the ending gives the reader a useful
    next step. Keep the review notes with the issue.
  </p>
</Article2Block>
```

```sh
bunx --bun shadcn@latest add @gnostic/article-2
```

## Editorial article

Use this section for a case study or journal entry.

```astro
---
import Section from "@/components/blocks/content/content-agency-article.astro"
const section = {
  label: "Original concept project",
  title: "Rook & Stone",
  description:
    "A quiet identity and project archive for a residential architecture practice.",
  image: {
    src: "/media/foldline/rook-stone.webp",
    alt: "Limestone courtyard house with an olive tree and reflecting pool",
  },
  metadata: [
    {
      label: "Client concept",
      value: "Rook & Stone",
    },
    {
      label: "Scope",
      value: "Brand strategy, Studio website",
    },
    {
      label: "Year",
      value: "2026",
    },
  ],
  sections: [
    {
      title: "The challenge",
      description:
        "Rook & Stone is a fictional residential practice with a patient approach to materials and light. Its concept brief called for an identity that could feel precise without becoming cold, and a website that could explain a home without turning it into a list of features.",
    },
    {
      title: "The approach",
      description:
        "We paired a restrained wordmark with warm photography and short project notes. The archive starts with a view of each house, then moves through its setting, plan, and material choices. A small set of page patterns keeps new case studies easy to publish.",
    },
    {
      title: "The outcome",
      description:
        "The concept brings the practice’s point of view into focus. Visitors can browse the work, understand how the team thinks, and start a relevant conversation. This is an original demonstration project for the Foldline sample brand.",
    },
  ],
  back: {
    label: "All concept projects",
    href: "https://example.com/projects",
  },
}
---

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

```sh
bunx --bun shadcn@latest add @gnostic/content-agency-article
```

<AutoTypeTable
    path="../../packages/ui/src/components/blocks/shared/agency/types.ts"
    name="AgencyArticleProps"
/>

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

## Choose a article layout

Choose an article layout for one long-form page. Keep the title specific and use the description to set the scope. Author and date details should describe the actual publication, not the demo content.

## Pass content from Astro

Pass the heading, author object, and image required by the chosen block. Place the article body in the supported content slot. The template owns collection queries and the route; the reusable block only receives the resulting content.

## Responsive layout and images

Check line length, long headings, code, and tables on small screens. Supply image dimensions through the expected Astro image type and use a crop that still makes sense beside the title. A decorative lead image can have empty alt text; an informative image needs an accurate description.

## Compose the next section

Use [Articles](/blocks/articles) for a listing, [Doc](/blocks/doc) for a reference page, and [Typeset](/docs/theming#text-and-headings) for prose styles.
