Skip to content

HomeBlog

How authoring works in Hatamoto: pages, posts and the builder

An engineer's walk through authoring in Hatamoto, using a small bakery site: which editor opens for what, how drafts go live, versions, blocks versus templates, and who can do what.

16 min read
𝕏in

Everything on a Hatamoto site is an entity of some content type, and the type have their own tempalates. A page opens in the page builder, a visual editor for layouts. A post opens in the blog editor, which is for writing. Anything else, a person for example, opens a plain form. Both editors save drafts on their own, keep a version on every save, and leave the live site alone until you press the publish button.

The example below is a small bakery site: a home page laid out in the builder, a News post, the owner as a public person, an opening-hours block, a Contact form and a Main menu.

Entities, content types and taxonomies

An entity is one item of content: a page, a post, a person, or a custom item such as an event. Each belongs to a content type (the settings screens say entity type), and the type's schema sets which fields the item has and the pattern of its public address, such as /blog/{slug}. If you come from WordPress, a content type is a post type with its fields defined up front.

Owners manage types under Settings > Entity models > Entity types: a name, a slug, a JSON Schema for the fields and an address pattern. The details are in the entity types and taxonomies reference. Built-in types are read-only, except person, which takes extra fields while its core fields stay locked. Settle the types and their address patterns early. Changing a pattern later works, since Hatamoto writes a 301 redirect from each published entity's old path, but it is a change you want to make once.

A taxonomy groups entities. Categories and tags are built in, owners can add custom ones, and each group inside a taxonomy is a term, such as the category "News". Owners manage terms under Settings > Entity models > Taxonomies, and only owners can create them. An editor writing the bakery's first post can pick News but cannot add it, so create the handful of categories you need before you invite editors.

A person is an entity of the person type: name, photo, job title, short bio and links. It can be credited as a post's author, given a public profile page, and linked to a login or left without one.

Which editor opens

The admin picks the editor from the type. Post types (post, article, blog_post, blog, or any type whose Editor setting is Post editor) open in the blog editor. A page, and any entity with page sections, opens in the page builder. Every other type opens the entity form at <admin>/entities/{id}. There is no separate section editor and no plain form for a page.

The question to ask is whether the layout is the point. The bakery's home page needs a hero, a row of features and a call to action, so it is a page. The News post is text the theme will lay out, so it is a post. A common temptation is to build each news item as a page. It works, but the blog editor's sidebar handles categories, tags, the author credit and the featured image, and the theme lays the post out for you.

Aspect

Page builder

Blog editor

What it edits

A tree of layout nodes in attributes.page_doc

A title, a body and a sidebar of fields

Starting point

Start this page panel or Start blank

An "Untitled post" draft with an empty body

Autosave

A few seconds after each change

A few seconds after you stop typing

Preview widths

Desktop, Tablet and Phone

Desktop or Mobile

Button after publishing

Update page

Update

Search settings

SEO drawer in the top bar

SEO panel with a Focus keyword

Both editors refuse a stale save. If someone else saved the same item after you opened it, the builder offers Keep my version, Load their version or Compare in Versions; the blog editor offers Overwrite with my version or Reload their version. Your unsaved changes are still there when the warning appears, but someone has to choose, so give each person their own pages when two of you are editing at once.

Drafts, publishing and scheduling

An entity is Draft, Published, Scheduled or Archived, and a draft is visible only to signed-in people. In both editors, Save draft keeps the draft and Publish makes it live. After that the button reads Update page in the builder or Update in the blog editor, and visitors keep seeing the old content until you press it. Tell a new editor this on day one.

Any other type, a person for example, opens a form where you set Status and press Save. The full path is in the guide to editing and publishing content.

Everything starts from Entities in the sidebar (<admin>/entities). The Create menu has one entry per type except reusable blocks and layout parts, the search box looks at titles and addresses, and the status, author, term and date filters sit in the browser address, so a view can be bookmarked. Rows have actions such as Publish, Duplicate and View on site, and ticked rows take bulk actions. Archive takes an item off the public site and keeps it. Delete asks first and removes the item with all its versions. When in doubt, archive.

Scheduling and unpublishing

To publish later, set Status to Scheduled and fill in Publish at. A background worker publishes the item when it is due, in the site's time zone. An owner sets that under Settings > General, and should do so before anyone schedules a post, because every schedule reads it.

To take something down on a date, open the published item and fill in Unpublish at, optionally with a path in When it unpublishes, send visitors to. The item returns to draft at that time, and if you gave a destination the old address serves a temporary 302 redirect to it until the item is published again. Remove the scheduled unpublish cancels the plan. A Christmas orders page for the bakery can unpublish on December 26, 2026 and send visitors to /news without anyone remembering to do it.

Sharing a draft

To show a client a draft without giving them an account, open the draft or scheduled item and choose Share preview under More actions. Pick a lifetime of 1 hour, 1 day, 7 days or 30 days and press Create link. The link is shown once, so copy it then. Anyone holding it sees the last saved draft, search engines are told not to list it, and it stops working once the item is published. Up to 10 links can be active per item, and any can be revoked.

Versions

Every save creates a version, autosaves included. The Versions tab on an item (<admin>/entities/<id>/versions) lets you view any version, compare two, or restore one. Restoring asks for confirmation and writes the older state as a new version, so going back never deletes history.

Autosave produces a lot of versions, and a nightly job tidies them. It merges identical consecutive versions, drops autosave versions first, and keeps the newest 50 per entity by default; owners change the number under Settings > Backups & recovery > Versions. A version that was live in the last 30 days is never pruned and carries a Live badge, which is the one you want when a client asks for last week's wording back.

Writing the News post

Open Entities, then Create > Post. A draft called "Untitled post" opens with the title at the top, the body below and a sidebar on the right. The same screen is described in the guide to writing a post.

Type / at the start of a line for the block menu: headings, lists, a quote, a table, an image, a video, a callout and a FAQ block. Select text for bold, italic, link and code, or type ## for a heading and * for a list. Paste or drop an image into the body and it uploads to the media library. The draft saves itself a few seconds after typing stops, and if the browser closed before a save, the editor offers the unsaved text the next time you open the post.

The sidebar holds the slug, featured image, excerpt, categories and tags, and the author. The SEO panel takes a Focus keyword, the SEO title and description on its Search tab, and an Include in /llms.txt switch under Advanced. A few seconds after you stop typing it shows a search-result preview, length checks, keyword placement and tips for AI assistants. Use it to catch a missing description or an overlong title.

For the author, open the Author picker and choose a person, or the site's own name. Typing a new name creates a person with no profile page who cannot sign in, which is fine for a one-off guest. For the bakery owner, go to Entities > People (<admin>/people), press Add person, fill in the name, photo, job title, short bio and links, and switch on Public. The person then has a profile page, by default at /author/<their-slug>, and a place in the sitemap. If the owner was typed into the picker once and added properly later, Possible duplicates offers a Merge that moves the posts to the kept record.

Laying out the home page

The builder edits attributes.page_doc, a tree of layout nodes that Hatamoto renders on the server, so the public page is plain HTML and CSS. A document can be 8 levels deep, hold 1000 nodes and weigh 1 MB. Two limits do change how you work: raw HTML nodes are rejected, and styles are design tokens, listed options and bounded numbers, never raw CSS. Pages stay consistent with the theme, because the values come from the site's design system. Every element, shortcut and limit is in the editor reference.

The Navigator on the left is a tree of every element that you can drag, filter and rename, with the Insert tab beside it. The canvas in the middle shows the page in a sandboxed frame; click an element to select it, double-click text to type in it. The Inspector on the right has Content, Style and Advanced tabs, and the top bar holds Undo, History, the device switch, Preview and the save buttons. The walk-through is the guide to editing a page.

  1. Open Entities, choose Pages and press Edit on the home page row. An empty page shows the Start this page panel with a hero banner, features, a call to action or an FAQ, or Start blank. Take the hero.

  2. Point between two elements and press the round + to pick a layout, Choose an element… or Insert a ready-made section…, or press / to search elements, patterns and blocks. Add a features row for bread, cakes and catering, then a call to action pointing at the Contact page.

  3. Edit the fields on the Content tab, or double-click text on the canvas to format it in place. An image warns until it has alt text or the Decorative box ticked.

  4. On the Style tab (Layout, Spacing, Fill, Typography, Corners & border and Effects), pick from the tokens. On Tablet or Phone your edits apply to that width only, so check the Phone view before publishing.

  5. Press SEO in the top bar for the SEO title, description, social image and canonical address.

  6. Press Save draft, then Publish. From then on the button reads Update page.

Ctrl+K (Cmd+K on a Mac) opens a command palette that searches elements, patterns, blocks and commands such as Undo, Tablet or Save as block. History lists each step in plain words, and ? shows every shortcut. The palette is faster than the Insert tab once you know a few element names.

Colors in the builder come from the design system and show plain names such as Brand and Text, which keeps a page consistent with the rest of the site. Owners can change those colors without leaving the page: More > Site styles has the Brand, Secondary, Background and Text colors and the Small, Medium and Large corners, saved with Save site styles. An Accent color appears only when the theme uses builder colors. Themes, fonts, the design system and style presets live under Theme in the sidebar.

Blocks, templates and layout parts

Select an element, open the Insert tab and press Save as block… or Save as template…, then type a name. The same commands sit in the Ctrl+K palette and the right-click menu. Which of the two you pick is the decision that matters.

A block is shared. Edit it and every page that uses it changes. Blocks are listed under Theme > Blocks and show up in the Insert grid. A template is a copy: insert it on another page, and later edits to the copy leave the original alone.

The bakery's opening hours belong in a block. When the shop stops opening on Mondays, you change the block once and the home page, the Services page and the Contact page all update. A product page is the opposite case. Start each one from a template and let it drift, because nobody wants the croissant page to change when the birthday cake page does.

Layout parts are the frame around the page content. They live under Theme > Layout parts, open in the same builder (the delete entry reads Delete part) and have no SEO button. Neither blocks nor layout parts appear in the entity list's Create menu, and a reusable block cannot be duplicated.

Media, menus, forms and redirects

Owners and editors can do all four. The screens are in the guide to media, menus, forms and redirects.

The media library (<admin>/media) takes up to 20 files per upload, each up to 10 MB unless the administrator changed the limit, and both editors open it as a picker. After uploading, open each image and fill in its alt text. The library marks images without it with a Missing badge, and an image in the builder needs its own alt text or the Decorative box ticked.

Menus are under Theme > Menus. New menu takes a name and a Location (Header, Footer, Sidebar or No location), and the theme decides which of those it prints. Items link to a page or post, a custom address, or a category or tag, and Save menu saves the whole menu at once. One Main menu in the Header location with Home, Services, News and Contact is enough for the bakery.

Forms (<admin>/forms) start from templates such as Contact and Newsletter signup. Every new form starts Paused and accepts nothing until you switch it to Active, so do that before you place it, either with the form element in the builder or the shortcode [form slug="contact"] in rich text. Replies land under the form's Submissions tab.

Redirects are under Settings > Redirects: From, To and a Type of 301. The 404 log tab lists addresses visitors asked for that do not exist, each with a Create redirect action. It is the first screen to check a week after moving a site from another system.

Who can do what

The tour of the admin describes two roles. An owner can do everything: content, users, settings, themes and plugins. An editor works on content: pages and posts, media, menus, forms, redirects, reusable blocks and templates. A site always keeps at least one owner, and an editor who opens an owner-only screen sees a Not allowed page. If Plugins and most of Settings are missing from your sidebar, you are an editor.

The invitation form under Settings > Users lists further roles, described in the guide to inviting people. Author writes and publishes their own content, Contributor writes drafts and cannot publish, Reviewer edits and publishes anyone's content but cannot create or delete entries, and Read-only changes nothing. An invitation link works once and expires after 7 days.

Task

Owner

Editor

Create, edit and publish pages and posts

Yes

Yes

Create a new term

Yes

No

Change content types and address patterns

Yes

No

Search and replace across the site

Yes

No

Site styles from the builder

Yes

No

Invite users, create API keys, manage plugins

Yes

No

Clear the page cache

Yes

No

The first hour on a new site

  1. Sign in at <admin>/login (print the address on the server with hatamoto admin-url) and complete your profile when asked.

  2. As an owner, set the time zone under Settings > General.

  3. Create the first page with Create > Page, start from the hero panel, publish, then press View on site.

  4. Write the first post with Create > Post, add the News category (an owner creates it in the sidebar) and credit a public person.

  5. Save the opening hours as a block so the same box can go on every page.

  6. Build a Main menu under Theme > Menus with the Header location.

  7. Create a Contact form from the template, set it to Active and place it with the form element.

  8. Invite the person who writes the news under Settings > Users as an editor.

Frequently asked questions

Is there a plain form for a page, without the builder?

No. Every page opens in the page builder; the older form editor was removed. The name, slug and search details are still edited on the entity form, reached with the row's Settings action or Page settings in the builder's More menu. If a stored layout cannot be read, a recovery screen offers Open the versions.

How do I nest one page under another?

Reorder on the Pages list offers Move up, Move down, Indent and Outdent. Indenting changes the parent and the address, and nesting stops at 8 levels. A published page that changes parent keeps its old address as a redirect.

When you change the address of a published page, Hatamoto adds a redirect from the old address. If an owner changes a type's address pattern, a 301 redirect is written from each published entity's old path. Redirects are checked before the page cache, so they take effect at once.

I pressed Update and the live page has not changed. Why?

Publishing clears the page cache at once on the server that handled the edit. On a site with several instances, the others keep the old page until their cache lifetime ends. If the change still does not show, an owner can press Clear cache under Settings > Performance.

Discussion

Leave a comment

(never shown)
Comments with links are reviewed before they appear.

0 comments

    Run it on your own server.

    Open source, one Go binary and Postgres. AI analytics start counting from the first request.

    curl -fsSL https://hatamoto.dev/install.sh | sudo sh