Русский
Academy: all guides

Set up a site from a .hoba theme

Import the package as a new draft, check the reader contract, adjust the name, brand, pages, and forms, then verify the domain binding and publish a release. Import does not update an existing site in place.

Import creates a new draft

Open Admin → Templates (Шаблоны in the Russian Admin) and select Upload / Install. You can choose a theme from a catalogue card or select a local .hoba under Local starter or theme package.

Core inspects the archive first: POST /api/v1/cms/sites/import-bundle?inspect=true. It reads the package, returns the name, slug, locales, page, form, and media counts, and writes nothing — the dialog shows Validating package; no site is created…. A failed inspection creates no site.

Enter a Site name and Site slug (lowercase Latin letters, digits, and hyphens), then select Create draft site. Core creates a new draft owned by you and opens it. Existing sites are untouched and nothing is published.

  • A package can contain pages, shared blocks, collections, forms, media, skins, and theme settings. References between them survive import.

  • Default limits: 128 MiB request body, images up to 5 MiB, and WOFF2 fonts up to 2 MiB.

  • An invalid archive returns 422 INVALID_BUNDLE. Read the reason instead of uploading the same file again.

Before confirming, open Package license and resource notices and review the licence and asset provenance. Import does not install plugins or enable Core licence modes.

Package reader contract

A .hoba theme is a declarative graph-1 archive (hoba.theme.graph, version 1, compiler hoba-theme/graph-1). Core reads it and does not execute TypeScript. The graph and manifest declare min_reader_revision: 8; current Core accepts exactly 8 and rejects another revision with min_reader_revision must be 8.

If the package targets an older revision, rebuild it from source with the Theme SDK: node starters/authoring/cli.mjs build theme.ts --out site.hoba. In an unpacked author kit the same build is node build.mjs theme.ts site.hoba. Do not edit the archive by hand or look for a way around the check.

The package declares Core compatibility as core_compat: {min, max_exclusive}. Outside that half-open range import fails with requires Core [min, max), running <version>. The database schema has its own requirements: do not import a new package into an older installation, and do not expect import to upgrade Core.

Plugins. Nonempty plugin requirements are checked, but import neither installs nor enables them. A package with plugin-backed nodes is rejected. Install and enable the exact versions on a compatible Core first. For example, the portal theme requires hobbit.chat@0.1.6.

Before confirming, compare the inspection summary: pages, forms, and media. If a count differs from what you expect, stop and inspect the package itself rather than retrying the import.

Name, brand, and appearance

Open Admin → Settings → General. Name sets the site name, and Public URL is the origin used in generated links (empty falls back to the deployment value). The Domain field stays metadata: public routing comes from the binding on the Domains page.

The Identity card shows the slug and site ID; the slug is immutable in this release. For search engines, fill in SEO defaults → Organization: Organization name, Logo URL, and Favicon. These are structured metadata, not the visual site header.

Change colours, typography, and corners under Settings → Appearance: Primary, Accent, Page background, Font family, Text size scale, Corner radius, and Shadows. This edits the draft only; visitors see the change after you publish and activate a new release.

The visual logo and header come from the theme’s shared definitions. If the theme exposes them as editable blocks, change them in Composer; otherwise edit the theme source and rebuild the package. Do not confuse the SEO Organization logo with the logo in the header.

Pages and content

Open Admin → Pages and choose a page. Edit in Composer opens the visual editor, Content shows simple block fields, and Preview opens the saved draft.

In Composer, change text, images, links, and block order. For an internal link, choose the page instead of pasting its full address. Describe a meaningful image; a purely decorative one needs no description. Build headings by level, not just by font size.

  • Each language version is a separate page. Check the heading, links, captions, and address in every locale.

  • A shared header or footer changes on every page that uses it once you release the site.

  • Saving does not publish the page. Visitors see the active release, not the draft.

If a page should stay in the draft, do not include it in a release or publish it. Check the preview on a narrow screen and tab through the links.

Forms

Forms are created separately: Admin → Forms → New form. Set the fields (label, type, required, options), submit label, success message, and optionally consent and captcha. Saving a form does not publish the site.

In Composer, add a Form block and choose the created form in its Form field. The block references the form by ID. If a draft page uses the form, you cannot delete it: remove those references first.

Review submissions under Submissions for the form. A published release keeps its own embedded copy of the form, so later edits or deletion in the draft do not change an already generated site.

Check required fields, consent text, the post-submit message, and captcha behaviour in the preview. For a new form, submit a test entry and confirm it appears in Admin.

Domain and binding

Open Admin → Domains and select New binding. Enter a Host without a scheme or port (for example, example.com), a Base path (empty for the host root or /shop), choose the Site, and tick Primary binding for the site if appropriate.

One host can serve one site at its root and other sites under non-overlapping sub-paths. The same (host, base_path) or overlapping paths are rejected with a conflict message. Bindings are the only source of public routing; the Domain field in settings does not replace one.

To switch a host to another site, delete the old binding and create a new one for the target site: editing a binding changes its host, path, and primary flag, but does not move it to another site. Review the new draft first, then switch the binding.

DNS, HTTPS, and the reverse proxy are configured outside Core. Make sure the host resolves and the proxy forwards the original Host to /public/. An unbound host shows a holding page, and a disabled site shows its own offline page. To verify a domain with a search provider, use SEO → Domain verification; it does not replace DNS.

Publication readiness

Before releasing, review the draft: Publication → Drafts lists pages and entries outside the active release. Open the preview for every changed page, tab through the menu and links, and check forms, languages, and a narrow screen.

Then open Releases → Publish & Generate. Core freezes the draft into an immutable release, mints a generation token, generates the public site, and makes the release current. Each step is shown separately: freezing, token, generation, activation; on failure you can see which step did not finish.

A release cannot be edited. A ready but non-current release can be activated, and an earlier complete release can be restored with Rollback. Scheduling is available only for a prepared release and runs when the scheduler is working.

After activation, open the public address in a window where you are not signed in to Admin. Check that the expected site and release load, not a preview. Without publish permission, ask the site owner or a system operator to generate and activate the release.

Why this is not an in-place update

Importing a .hoba always creates a new draft and never updates, merges into, or overwrites an existing site. The new site gets its own IDs, slug, and public URL; nothing is published automatically.

To change a live site, edit its draft and publish a new release: appearance, pages, and forms are draft edits, not another import. To move to a new theme version, rebuild the .hoba from source, import it as a separate draft, review it, and only then switch the domain binding.

Export and import are a copy or a transfer, not an in-place update. Exporting a site with media creates a new draft on import, but it does not include secrets or submitted form entries. Updating the Core binary also does not publish a new site release.

Do not rely on the slug or URL to “replace” an existing site. Importing the same slug creates a separate site; check which site the binding serves before you change the public address.