Publishing 0.19.0: Category colours, related posts, readable URLs and slugs that stay put
Publishing 0.19.0 is the largest update of the PhoenixKit CMS yet: categories get a colour and an icon and show on your public pages, posts can list related posts, a date-addressed group can switch to readable URLs, and a published post’s address no longer changes when you fix a typo in its title.
Categories readers can see
A category now has a Colour, an Icon and its own SEO title and SEO description, which its public archive page uses. A wrong colour or icon is now shown under its field instead of as a general error.
Three new switches on the group’s edit page bring categories to the public pages, all off until you turn them on: Show categories on the cards puts each post’s categories on its listing card, in the category’s colour and icon; Show a category filter lists the group’s categories above the listing, and readers can pick one or several; Show category chips adds linked badges to the post page, placed by Category chip position (Above the title, Beside the date or After the content). More from this category shows 3 posts or 6 posts under each post.
Categories, now with a colour and an icon each.
A pager that fits on a phone
The module settings page has a new Pagination Style: Page numbers — « 1 … 6 7 8 … 62 », Compact — Page 7 of 62, with a page box, or Previous and next only. None of them widens a phone screen. In a group that lists by date, the step links read “Newer posts” and “Older posts”.
Readable URLs for a date-addressed group
A group that addresses posts by date can now switch to addresses made from each post’s title, with Convert to readable URLs under Readable URLs on the group’s edit page: /news/release-notes instead of /news/2026-11-06/01:13. Every post gets its slug in one step, and the old date addresses keep working with a permanent redirect. The switch is one way. It is refused while a live post in the group is scheduled for a later date.
Slugs that stay put
Fixing a typo in a published post’s title could rewrite its slug, carry every translation along with it, and leave the live address and its redirects answering 404. Now a stored slug never changes on its own. The editor follows the title only while the post has never been published and its slug still matches the title. If you change the slug of a post that has been public, the editor tells you the URL moves and that the old one will redirect.
Each translation now has its own URL slug. A translation saved without one gets a slug from its own title, a new translation no longer starts with the source language’s slug, and renaming the post’s slug moves only the primary language.
More in the editor
The editor’s sidebar has a Version label, a name shown beside the version number in the public version menu (“v3 · Billing 0.27”), so readers can find the version for their release. Custom fields holds your own name and value pairs per post, for the site’s templates to read. The Article structured data names the post’s author custom field as its author, else the site.
Faster and steadier public pages
Images in posts get a width and height, so the page doesn’t jump while they load, and an image can have a dark copy that shows to readers using a dark theme, without JavaScript. Pages get a <meta name="description">, cut to 160 characters at a sentence or word end when it is made from the text. When a post goes live, leaves, or changes its address, the sitemap is regenerated about 30 seconds later; Sitemap refresh in the settings turns that off, and it never runs while the Sitemap module’s automatic regeneration is off.
For developers
Publishing.list_published/2 returns a page of a group’s published posts as data, with URLs, categories and custom fields, filtered by category, search or custom field, and category_counts/2 counts posts per category. Publishing.import_post/3 creates a whole post in one call, with SEO, OpenGraph, categories, custom fields, a version label and a past or future publish date, checking everything before it writes. public_url_prefix lets the public pages live under their own prefix, such as /, when PhoenixKit is mounted elsewhere, and a group’s Rendered by setting lets your own router draw its listing page while posts and feeds stay with Publishing. That is how the news page of this site works: it is our own listing of a Publishing group.
Upgrading
Publishing 0.19 needs PhoenixKit 3.5.0 or later. Run mix phoenix_kit.update: it adds V3 of the module’s migrations, a column for the categories’ new details. Every post is rendered once more after the deploy. The new public-page switches are off, so live pages look the same until you turn them on.
Full release notes: Publishing 0.19.0
0.19.0 · 15 November 2026
PRs #64 and #65, and the fix for issue #54. Requires phoenix_kit 3.5.0 or later (>= 3.5.0 and < 4.0.0, the ecosystem-wide floor), and adds V3 of the module’s migration chain: run mix phoenix_kit.update.
Added
- Categories carry a colour, an icon and an SEO title and description (module chain V3 adds a
datacolumn tophoenix_kit_publishing_categories; a rollback keeps the column). The category form,upsert_categoriesandlist_categoriestake and return them; the archive page uses the SEO texts. - Category chips, a category filter and related posts on the public pages, all off by default per group:
listing_show_categories,listing_category_filter(?category=a,b),category_chips_positionandrelated_posts. - A listing pager in three styles (
publishing_pagination_style:numbered,compact,simple), which never widens a phone screen. A timestamp group’s pager says “Newer posts” / “Older posts”. Publishing.list_published/2andcategory_counts/2: a page of a group’s published posts as data, with URLs, categories and custom fields, filtered by category, search andcustom:fields.Web.HTML.url_context/1makes building many post URLs cheap.- Custom fields on posts (version data
custom_fields): edited in the editor’s sidebar, written byupdate_post/4, read asmetadata.custom_fieldsand exposed through the machine API. - Version labels (“Billing 0.27”), edited in the editor and shown in the public version menu;
import_post/3takes one too. Publishing.import_post/3: creates a post with content, SEO and OpenGraph fields, categories, custom fields and a past or futurepublished_atin one call, checking every attribute before anything is written.- Converting a timestamp group to readable URLs (
convert_to_slug_mode/2, a “Readable URLs” button on the group’s edit page): one way, every post gets a slug from its title, and the old date URLs 301 to the slug URLs. Refused while a live post is scheduled ahead. public_url_prefix: the public pages can live under their own prefix (for example/) when PhoenixKit is mounted elsewhere; kit-prefixed URLs 301 to it.public_listingper group: a host can serve a group’s listing page (and optionally its archives) itself.- Light/dark image pairs:
<Image dark_src="…">/dark_file_uuidshows the copy that matches the reader’s theme, without JavaScript. <Image>gets width and height (the author’s, else the stored dimensions of the served copy), so pages do not shift while images load.- A debounced sitemap refresh when a post goes live or leaves, its URL or
sitemap_excludechanges, or a group changes, through core’s Sitemap scheduler. It is skipped while core’s automatic regeneration is off, and can be switched off withpublishing_sitemap_refresh. - The Article JSON-LD has an author: the post’s
authorcustom field, else the site. <meta name="description">next to the og and twitter descriptions; a derived description is cut to 160 characters at a sentence or word boundary.
Changed
- The
:phoenix_kitrequirement is>= 3.5.0 and < 4.0.0. The runtime probes for older cores are gone; the core APIs they guarded are called directly. - A stored slug never moves on its own (issue #54). The editor re-derives a slug from the title only when the title changes, and only while the post has never been published and its slug still follows its title. A slug change on a post that has been public shows a notice that the URL moves and the old one redirects.
- Each translation’s URL slug is its own. A translation saved with an empty URL slug gets one from its own title (the post slug when that is taken), a new translation no longer starts with the source language’s slug, and a post-slug rename moves only the primary language’s slug (
DBStorage.rename_default_url_slugs/4). - The public dispatch keeps every group slug in
:persistent_term(GroupSlugs), so a host request outside Publishing costs no query. - The render cache moves to
v13, so every post re-renders once after deploy. - The README shows how to render OpenGraph tags in the host’s
<head>.
Fixed
- Fixing a typo in a published post rewrote its slug from the title and carried every translation along, so the live URL and the redirects pointing at it returned 404 (issue #54).
- Listing excerpts dropped component-shaped text shown in code, and could come out empty when the body opened with a fence holding a blank line.
- Related-post cards in one row differed in height.
- The category form showed a bad colour, icon or SEO text as a generic error instead of under its input; the
upsert_categoriesdry run reported their old values as nil. - The new-group form said the URL mode can never change; a group with nothing published had no Public button; the group settings showed “Listing page” twice.
- A version label with invalid UTF-8 raised.
- grpc and grpc_core updated to 1.1.0 (EEF-CVE-2026-121808).
Publishing 0.19.0. Install or update: {:phoenix_kit_publishing, "~> 0.19"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.