Past issues numbered list — Blog block

Pro

blog-past-issues-numbered-list · for journal pages

Past issues numbered list

Numbered issues with their date and one line, a subscribe card beside them: a letter or a periodical

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/blog-past-issues-numbered-list

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import BlogPastIssuesNumberedList from '@/components/trame/blocks/blog/blog-past-issues-numbered-list.vue'

const props = {
title: "The issues",
lead: "Every article we’ve published, newest first.",
entries: [
{
id: "n41",
issue: "No. 41",
title: "The materials issue",
excerpt: "Leathers, linens and canvases: what we learned this season.",
date: "2026-10-01"
},
{
id: "n40",
issue: "No. 40",
title: "Repair, a matter of craft",
excerpt: "A day in the repair workshop.",
date: "2026-09-01"
}
],
subscribe: {
title: "Get every issue",
text: "One issue a month in your inbox, and no other email.",
link: {
label: "Subscribe",
action: "newsletter"
}
}
}
</script>

<template>
<BlogPastIssuesNumberedList v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
title*stringWordsthe list’s title ("Issues")
leadstringWordsone sentence under the title
entries*Entry[]Dataevery issue, newest first
openstringActionthe action that opens one issue; the issue is its record
groupLimitnumberDatahow many issues to show before the entry to the rest: leave empty to show all
ctaCtathe entry to the complete list of issues ("All issues")
subscribeSubscribea card beside the issue list to subscribe to the journal
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Entry entries[] · 13 props
PropTypeDescription
id*string | numberDatathe record’s id in the tool that answers it
title*stringWordsthe article’s title
excerptstringWordsa sentence or two from the article
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the cover picture shows
sectionstringWordsthe section it belongs to, e.g. "Guides"
authorAuthorwho wrote it
datestringWordswhen it was published, as the site writes it
readingTimestringWordshow long it takes to read, e.g. "6 min"
issuestringWordsthe issue’s number as the journal prints it ("No. 41")
sourcestringWordswhere it was published, when it is not this site ("Print edition", "Podcast")
urlstringDesignan address outside the app, for an issue published elsewhere
groupstringWordsthe group it belongs to when its date is not an ISO date ("Spring 2025")
Author entries[].author · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Cta cta · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Subscribe subscribe · 3 props
PropTypeDescription
title*stringWordsthe invitation ("Get every issue")
textstringWordswhat the reader gets and how often, as the merchant promises it
link*Linkthe link link: its words and where it leads
Link subscribe.link · 4 props
PropTypeDescription
label*stringWordsthe link’s words, e.g. "See the collection"
actionstringActiona named action of the page
recordRecord<string, unknown>Datathe record the action applies to, passed to the host with it, if any
urlstringDesignan address outside the app
Options options · 1 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: open, cta, subscribe.link
  • Reads articles from your app

A blog section, for journal pages; it uses @lucide/vue, class-variance-authority, clsx, reka-ui, tailwind-merge.

More blog blocks

  • Latest lines: one line per article, date and title, no excerpt: a teaser at the foot of a page or of a product.
  • Lead and rail: the usual blog home: one large lead story and two or three short stories stacked beside it.
  • More to read side column: the writer and the newsletter in the main column, a side column of related links and the most read the journal itself ranks: a news-like article.
  • Next in series lead card: one large "read next" card with its cover and, for a series or an issue, the list of its articles: a series or a numbered issue.
  • Reading path numbered rail: a vertical rail of numbered steps with a line of why for each: a newcomer’s guided tour of the journal.
  • Section page chips grid: a section with several siblings: a row of filter links above a grid of cards.
  • Section page featured then list: a section led by one article: the newest in full, the rest as a plain list below.
  • Section page masthead list: a section with a strong identity: a large title, its description and count, then boxed rows with the author’s line.

All 35 blog blocks