uichemy_add_blog
Give a project a blog: a listing page, an article page per post, the four archive pages, and the posts themselves. THE ARTICLE PAGES SHARE ONE SECTION LIST, and that is not a shortcut — slot tokens belong to the layout, so per-post copy could not live in them. Each post's title, byline, date and read time come from the post data written here, and the canvas paints them onto the page that belongs to that post. At most three article pages: the canvas matches a post to a page by the page's NAME ("Blog Detail Page", "… 2", "… 3"), and there is no fourth name it knows. Extra posts still appear on the listing. THE ARCHIVES COME TOO, because the pages already built point at them: an article's tag row links to a tag archive, its byline to an author archive, and the listing's search to a results page. Search Results, Author, Category and Tag Featured are built under the names the app's own generator uses, so a blog built here and one generated in the app are the same blog. Pass archives: false for the two-page blog this tool used to make. What this does NOT do: the WordPress export builds its posts from the backend's own blog collection, which only the app's blog generator writes. Posts written here are the site's canvas and listing; the export will still generate its own.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| posts | Yes | ||
| layouts | No | Layout per section folder — { "blog": "layout-x3", "post-content": 2, "post-featured-area": "website3" }. Anything omitted takes the folder's first layout. | |
| archives | No | Build the four archive pages — Search Results, Author, Category, Tag Featured. Default true, which is what the app generates. An existing page of the same name is left alone. | |
| projectId | Yes | ||
| categories | No | ||
| listingPage | No | What the listing page is called. Default "Blog Page", the app's own name for it. It is built in Blog Pages, never Core. An existing page of that name is used; with no name given, an existing listing ("Blog Page", "Blog", "News"...) is used. | |
| articleSections | No | Section folders for every article page, in order. Defaults to the standard article template. Must include post-featured-area and post-content — they are what the canvas paints the post into — and may carry only single-post sections beside them. |