A group's public pages: set up the listing, the post page and their look
Describes Publishing 0.19.0.
Each Publishing group has its own public pages: a listing of its posts (like /blog) and a page per post. The group’s edit page decides what those pages show and how they are laid out.
Where to find it
In the admin sidebar, open Publishing, then Settings on the group’s card. The settings are on the group’s edit page (/admin/publishing/edit-group/<slug>), under the name and slug, in three boxes: Listing page, Post page and Appearance. You need the Manage groups sub-permission of Publishing.
Changes apply when you press Save (stay on the page) or Save and exit. The name, slug and the one-way switch to readable URLs are in the guide on Publishing groups. The listing’s pager style is set for every group at once, on the Publishing settings page.
How the group's listing page looks.
Listing page
“The public page that lists this group’s posts (e.g. /blog).”
- Post order: Newest first (by publish date) (the default) or Oldest first (by publish date).
- Listing layout: Grid — cards with images (the default), List — horizontal rows with a thumbnail or Minimal — date and title only, no images.
- Rendered by: who draws the listing page.
- Publishing renders it: the default.
- The site renders it (posts stay here): the site’s own code answers at the group’s address. Post pages and feeds stay with Publishing.
- The site renders it and the category and tag pages: the same, and the site also draws the category and tag archive pages. Pick one of the last two only when a developer has built that page.
- Show categories on the cards: each post’s categories on its card, in the category’s colour and icon. Off by default.
- Show a category filter: the group’s categories above the listing. Readers can pick one or several; a category includes its subcategories. Off by default.
- Show a search box: readers search the group’s published posts by title and text, in the language they are reading. Off by default.
- Show the post count: the number of posts under the listing title.
- Highlight featured posts: posts marked featured in the editor are pinned to the top and shown larger. On by default. When ticked, it shows:
- Featured layout: Hero band — a large banner above the list or Highlighted card — a larger card within the grid.
- Featured style: Classic — image beside or above the text, Cover — the image is the background, text overlaid, Cover panel — background image with a solid text panel, Minimal — text only, no image or Top image — a wide image banner above the text.
- Highlight the latest post: the newest post gets its own “Latest” band under any featured posts. When ticked, Latest layout and Latest style offer the same choices as for featured posts.
- Clickable card images: a card’s image opens the post, like its title. On by default.
- Card hover animations: cards lift a little on hover. On by default.
- Show a date-timeline rail: a clickable date rail down the side to jump through the archive. Timeline markers sets its steps: Automatic (fit to the posts), By year, By month or By day.
- Exclude this group from the sitemap: neither the listing nor any of its posts is listed in the sitemap.
Post page
“What shows on an individual post and how it’s laid out.”
How each post's page looks.
- Content width: Narrow, Normal (the default) or Wide.
- Post date position: Below the title (the default), Above the title or Hidden.
- Author notes style: how notes written in a post appear. Footnotes — numbered refs, notes collected at the bottom (the default) or Slide-out panel — click the phrase, note opens on the right.
- Show the breadcrumb trail: the “Home / Blog / …” trail above the title.
- Show the featured image: the post’s featured image as a large hero above the title.
- Show the top back link: a small “Back to …” link to the listing above the post. On by default.
- Show category chips: the post’s categories as badges, each linking to its category’s archive page. Off by default.
- Category chip position: where those chips go: Above the title, Beside the date or After the content (the default).
- More from this category: at the end of a post, list 3 posts or 6 posts that share one of its categories, newest first. Off by default.
- Enable comments: a comment thread under each post. It needs the Comments module; readers who are signed in can post.
- Count views: per-day view counts, with bots filtered out and repeat views in a session counted once. When ticked, Show view counts adds an “N views” line to the post page.
- Show previous/next navigation: links to the newer and older post at the bottom of the post page.
- Show the reading time: an estimated “N min read” under the title.
- Show a reading-progress bar: a thin bar at the top that fills as the reader scrolls.
- Show a heading navigation rail: a side rail of the post’s headings, hidden on short posts.
The category settings only show something once the group has categories and its posts are given some; see the guide on categories.
Appearance
“Applies to every public page in this group.”
- Scrollbar style: Default — the browser’s native scrollbar, Branded — recolored to match the theme or Thin — branded and slimmer. Only the bar’s look changes; scrolling works as usual.
What it doesn’t do
- Category chip position is shown and saved even while Show category chips is off; it has no effect then.
- The pager style is not a group setting: it applies to every group, from the Publishing settings page.
- With Rendered by set to the site, Publishing doesn’t draw the listing, so the listing options above don’t change what readers see there; post pages keep their settings.
For developers
A site that draws a group’s listing itself reads the published posts with PhoenixKit.Modules.Publishing.list_published/2 (filters for language, categories, custom fields, page) and category_counts/2, then sets Rendered by to one of the site options so its router answers at the group’s address. The same settings can be written from code with Publishing.update_group/3; PhoenixKit.Modules.Publishing.GroupSettings.schema/0 lists every key, its allowed values and its default.