Skip to Content
Product GuideBlog & CMSOverview

Blog & CMS

Portal renders editorial content (blog) and static/marketing pages from an external CMS, with local files as a fallback. The CMS is pluggable — it is not tied to WordPress.

Building or debugging this? See How it works for the CMS service layer, per-route resolution, and config. For the “which source, when” guide see Content Management.

Not WordPress-only

A tenant chooses a CMS client per content type (blog vs pages). Portal ships three:

ClientTypical use
WordPressFull blog + pages via the WP REST API (posts, categories, tags, authors, menus).
GhostHeadless editorial content via the Ghost Content API.
MarkdownSimpler content served as Markdown.

If the CMS has no entry for a requested page, Portal falls back to a local file in the codebase. Legal pages (terms, privacy, cookies, DMCA, accessibility) are intentionally local-only and version-controlled.

Static pages go through the CMS too

It’s not just the blog. The /page/* and /pages/* routes — About, Contact, marketing and custom pages — resolve through the same CMS layer, each with a rule:

RuleMeaningExample
localOnlyAlways the local fileterms, privacy, cookies
remoteOnlyAlways the CMSeverything under blog/*
remoteFirstCMS first, local fallbackabout, contact, and the default for any other page

So the same page can be edited by a content team in the CMS or shipped in the repo, and the route decides which wins. The exact rules live in @configs/cms — see How it works → Configuration.

What you get

  • Blog — index, posts, categories, tags, and author pages (/blog/*, /authors, /author/*).
  • Static & marketing pages — /page/*, /pages/* with breadcrumbs and hierarchy.
  • Navigation from CMS — menus can be sourced from WordPress.
  • Embeddable widgets — /widgets/* render CMS-driven blocks for external embedding.

Configuration

Config / envDrives
@configs/cmsPer-route resolution rules (local vs remote).
@configs/blogBlog module options.
CMS_PAGES_CLIENT / CMS_BLOG_CLIENTWhich client (wordpress / ghost / markdown) serves pages vs blog.
WORDPRESS_API_* / GHOST_API_*Credentials/endpoints for the chosen client.
Last updated on