Skip to content
Siteon

Guide

How can a business owner update a static site themselves? (Adding a CMS to a static site)

Mark the parts the owner should be able to change (text, photos, a news list) with data-cms attributes, declare them in schema.json, and invite the owner to the Siteon dashboard. The owner edits from a phone and the change reaches every page within 15 seconds on Siteon hosting, or within a minute if you keep your own hosting, with no rebuild. Only the marked areas can be edited, so the design stays intact; it costs $4/month per site on your live domain.

Updated:

How it works

Steps

1. Add the script tag

<script src="https://cdn.siteon.dev/sitekit.js" data-site="hanaya" defer></script>

2. Mark the editable areas

<dl>
  <dt>Open</dt>
  <dd data-cms="hours.days">Mon–Sat</dd>
  <dt>Hours</dt>
  <dd data-cms="hours.time">10:00 - 18:00</dd>
</dl>

<!-- A news list: the template repeats for each item -->
<ul class="news">
  <template data-cms-list="news" data-cms-limit="3">
    <li>
      <time data-cms="date">2026-01-01</time>
      <span data-cms="title">Article title</span>
    </li>
  </template>
  <template data-cms-empty="news"><li>No news yet.</li></template>
</ul>

3. Declare the fields in schema.json and apply it

{
  "locales": ["en"],
  "groups": [
    { "key": "hours", "label": "Opening hours", "fields": [
      { "key": "days", "label": "Open", "type": "text" },
      { "key": "time", "label": "Hours", "type": "text" }
    ] }
  ]
}

Lists such as news are declared under collections (see Writing schema.json).

siteon schema push --site hanaya

4. Publish, and invite the owner

siteon deploy ./dist --site hanaya

In the dashboard, invite the owner by email as staff of that site. Staff can edit content and read inquiries for their own site only. They never see billing or your other sites.

Three ways to deliver the values

Siteon hostingCloudflare Pages relayOther hosting (data-embed)
When values are insertedBefore deliveryBefore deliveryIn the browser after the page loads
Time for an edit to go liveWithin 15 secondsUp to 1 minuteUp to 1 minute
A page per article, tag pagesAvailableAvailableNot available

What it costs

FreeLiteStandardBusiness
Monthly$0$4$12$39
CMS items20 lifetime1001K10K
Photos100MB1GB5GB20GB
AI translation & writing3 trial usesNot included30 articles/mo150 articles/mo

There is no charge per editor. On Free, editing works on development and preview domains and on its Siteon hosting subdomain (<name>.siteun.com). Custom domains need a paid plan.

Limits and what's coming

This page is also available as Markdown. For AI agents, pass llms-full.txt (full text).