defuss-shadcn / Website / website-blog
Blog
Blocks for the front of a blog or a category: the header with subscribe actions and category chips, the post previews - card, horizontal or featured - and the archive by year and month. Every block is CSS-only and built from the library's components and tokens.
On this page (3)
§The template
The Blog blocks composed into one page - the source is the page. The categories and the archive months are routes of defuss-dom-router (#/category/design, #/archive/2026/09) that filter the posts, and every post opens its page (#/post/designing-for-calm): one view filled from the page's data block - the essay, its author, the posts before and after it and what to read next. The language switch translates the frame with defuss-i18n and the posts with it - the data block holds each one in English and German, and the dates are formatted for the language. Subscribe and About open Dialogs.
§A blog front
Routes filter the posts (#/category/engineering, #/archive/2026/10) and open them (#/post/offline-sync); the switch translates the frame and the posts. A Site Header, the Blog Header, a featured Blog Item, a grid of cards and the Archive Index in a sidebar; the post view composes Article Header, Article Body, Author Bio and Article Navigation; a Site Footer closes the journal.
§The blocks
Blog Header
Introduces a blog with its title and editorial description - actions (subscribe, RSS), category chips, centered or on a banner.
Blog Item
Previews one post with its image, excerpt, and metadata - a card, a horizontal row, or a featured post with the copy over the image.
Archive Index
Links to content grouped by publication year or month - native disclosures with post counts, or the years side by side.
Comments, ideas or improvements? Edit this page's source on GitHub