Skip to content

Publishing public pages: what readers see on your blog, news and docs

Describes Publishing 0.19.0.

Every Publishing group gets public pages of its own: a listing of its published posts, a page per post, an archive per category and tag, and an RSS feed. This guide shows what a reader sees there and where each part comes from. What appears on them is set per group; see the guide on the group’s public pages settings.

Where to find it

The public pages live at the group’s slug, under the site’s address. On the demo the groups are Blog, Legal and News, so the Blog listing is at http://localhost:4100/blog (or /en/blog when the site uses a language prefix, see below). In the admin, a group’s posts list and a post’s page link to the public page.

The public pages are served only while the Publishing module is enabled. A group in the trash answers with a 404. Drafts, scheduled posts that are not due yet and posts in the trash never show.

The public Blog page of the demo site with the post Launch week: what's new, its excerpt and Read More The public Blog page of the demo site with the post Launch week: what's new, its excerpt and Read More

What readers see: the group's listing.

The addresses

A post’s address depends on the group’s URL mode:

  • Readable URLs (slug mode): /blog/my-first-post. Each language can have its own URL slug.
  • Date URLs (timestamp mode): /blog/2026-11-15, or /blog/2026-11-15/14:30 when more than one post shares that date. A date that holds several posts, opened without a time, goes to the first post of that day.

A group converted from date URLs to readable URLs keeps answering its old date addresses: each one redirects permanently (301) to the post’s new readable address. The guide on groups covers the conversion.

Other addresses inside a group:

  • /blog/category/<slug>: a category’s archive.
  • /blog/tag/<tag>: the posts that carry a hashtag.
  • /blog/feed.xml, /blog/category/<slug>/feed.xml, /blog/tag/<tag>/feed.xml: RSS feeds.
  • /blog/my-first-post/v/2: an older published version, when the post allows it (see below).

Because category, tag and feed.xml have these meanings, no post can use them as its slug.

Languages in the address

With more than one language enabled, addresses start with the language: /de/blog/my-first-post. With one language, there is no language segment. When core’s Languages setting to drop the default language’s prefix is on, the primary language has no prefix (/blog) and the prefixed form redirects to it.

When the language a reader asks for has nothing to show, Publishing sends them to the closest page instead of an error:

  • a listing with no posts in that language goes to the listing in the primary language (or another language that has posts), with the message “No posts in this language yet. Showing closest match.”
  • a post missing in that language, or a missing date or time, goes to another language of the post, then to another post of that date, then to the listing, with “The page you requested was not found. Showing closest match.”

An address whose group doesn’t exist is always a plain 404, never a redirect.

The listing page

The top of the page shows the group’s name (in the reader’s language when the group has a translated name) and, when the group is set to show it, a post count such as “12 posts”. Below it:

  • the language switcher, when the group has posts in more than one language and the In-Page Language Switcher setting is on.
  • a search box, Search posts… with a Search button, when the group has search turned on. Results replace the listing under a heading like “3 results for “invoice””, with Clear search to go back. Search shows at most 50 matches on one page, newest first; with no match it says No posts match your search.
  • the category filter, when the group has it on (see below).

On the first page, posts marked as featured sit in a Featured band and, when the group shows it, the newest post in a Latest band. Neither band repeats in the list under it. The list itself is a grid of cards, a list of rows or a minimal list of lines, as the group’s layout says. A card shows the post’s image, date, title, excerpt and Read More →. A group with nothing published says No published posts yet.

Category chips on the cards

When the group shows categories on the listing, each card carries a chip per category, with the category’s icon and colour. A chip links to that category’s archive, except in the minimal layout, where the whole line is one link and the chips are plain labels.

The category filter

When the group offers the category filter, a row of buttons sits above the posts: All, then every category that has posts in this language, in the order of the category tree, each with its post count. Clicking a category shows only its posts, subcategories included; clicking more categories adds them (posts in any of them show) and clicking a selected one removes it. The choice is in the address, as ?category=billing,crm, so a filtered listing can be linked to. A filtered listing is one plain list, without the Featured and Latest bands. At most 20 categories count in one filter.

The pager

When a listing has more posts than fit on a page (the Posts per page setting), a pager follows the posts. Its style is one site-wide setting, Pagination Style:

  • Page numbers — « 1 … 6 7 8 … 62 »: the first and last page, the current one and two pages either side (one on a phone), with « and » to step.
  • Compact — Page 7 of 62, with a page box: previous and next, “Page 7 of 62”, and a Go to page box with Go.
  • Previous and next only.

Every style wraps instead of widening a phone screen. In a group with date URLs, previous and next read Newer posts and Older posts; otherwise Previous page and Next page. The pager keeps the category filter when moving between pages.

Category and tag archives

A category’s archive, /blog/category/<slug>, is the listing with that category’s posts only, subcategories included, under a heading such as “Category: Billing” with its post count and an All posts link back. A hashtag’s archive reads “Tag: invoices”. The page title and the description search engines see come from the category’s SEO title and SEO description when the category has them; otherwise the title is the group’s name and the category’s name. Archives have no Featured or Latest bands.

The post page

From top to bottom, depending on the group’s settings:

  • a small link back to the group, showing its name.
  • the featured image, breadcrumbs, the date (above or below the title), the reading time (“4 min read”) and the view count (“120 views”), each when the group shows it.
  • the category chips, above the title, beside the date or after the content, as the group’s Category chip position says, when the group shows categories on posts. Each chip links to the category’s archive.
  • the language switcher and the version menu (see below).
  • a player under Listen to this post when the post has an audio version.
  • the content, then related posts, newer and older links (Newer, Older) and comments, each when switched on.

Related posts

When the group’s More from this category setting asks for three or six posts, the post ends with the newest other posts in the same language that share one of its categories. The heading is “More from Billing” when the post has one category, Related posts when it has several. A post without categories shows none. The cards in a row have the same height.

The version menu

A post whose author ticked Let readers browse older versions in the editor, and that has more than one published version, shows a menu with a clock icon next to the title: the current version number and its label, for example “v3 · Billing 0.27”. It lists every version that has been published, newest first, each with its label, and the live one marked live. Choosing one opens it at …/v/2. A post scheduled ahead has no public versions yet. Version labels are set in the editor; see the guide on versions.

For signed-in admins

A visitor who is signed in and can open the admin sees an Edit post button on a post (it opens the editor in the language being read), Edit group on a listing and Edit categories on a category archive.

What search engines and social sites get

Each page carries OpenGraph and Twitter tags, and since 0.19.0 a <meta name="description"> with the same text. A post’s description is its own SEO description, else the start of its text in that language, cut to about 160 characters at the end of a sentence or word. A post page also carries Article structured data (JSON-LD) whose author is the post’s author custom field when it has one, and the site otherwise. Listing and archive pages link their RSS feed so feed readers find it.

Posts appear in the site’s sitemap unless Exclude from the sitemap is ticked in the editor. With the Sitemap refresh setting on and core’s Sitemap module regenerating automatically, the sitemap is rebuilt about 30 seconds after a post goes live, leaves or changes its address.

Images in posts

An <Image> in a post gets its width and height on the page, the author’s own when given, else the stored size of the image file. The page then keeps its layout while images load.

An image can come as a light and dark pair: dark_file_uuid (or dark_src) names the copy for dark themes. The reader sees the one that matches the site theme they use, or their system preference when the site sets no theme. The switch is done in CSS, so it works without JavaScript. When one of the two files can’t be found, the other shows alone.

RSS feeds

Each group, category and tag has an RSS 2.0 feed, at the address with feed.xml on the end. A feed holds the 50 newest published posts in that language, newest first, whatever order the listing uses. Each item has the title, link, date and an excerpt of up to 500 characters, plus the audio file when the post has one. With the RSS Feeds setting off, feed addresses return 404.

What it doesn’t do

  • Category and tag archives show one page of at most 50 posts, with no pager.
  • Search covers the posts in the listing cache (the most recent 5,000 or so) and shows at most 50 results, on one page.
  • An older version opened from the version menu looks like the live page; apart from the menu, nothing on the page says it is not the current version.
  • Feeds always list newest first and are capped at 50 items.
  • Comments on posts need the Comments module and the group’s comments switch.

For developers

  • Public pages at another prefix. With PhoenixKit mounted under a prefix (say /phoenix_kit), the public pages follow it. To serve them at the root while the admin stays put: config :phoenix_kit_publishing, public_url_prefix: "/". Old addresses under the kit prefix redirect (301) to the new ones. A value that is not a plain path is ignored with a warning.
  • Drawing the listing yourself. A group’s Rendered by setting can hand its listing page to your app (The site renders it (posts stay here)), or the listing and its category and tag pages (The site renders it and the category and tag pages). Your router then answers at those addresses; post pages and feeds stay with Publishing. PhoenixKit.Modules.Publishing.list_published/2 returns a page of published posts as data (URLs, categories, custom fields), filtered by category, search or custom field, and category_counts/2 gives the counts per category. phoenixkit.eu’s own /news page is drawn this way from a Publishing group.
  • OpenGraph in <head>. The tags are written inside the page by default. A host whose root layout renders them in <head> with PhoenixKit.Modules.Publishing.Web.HTML.og_meta_tags/1 should turn off In-Page OpenGraph Tags on the settings page.
  • A host route whose first segment equals a group slug never matches: Publishing claims that address for GET and HEAD requests.