v0.10 Release Notes
Umono v0.10 lets you write what every page shares only once: the site name, the menu and the footer links. Contracts are now signed, so a site can activate themes through a mirror of its own, and a site can have a favicon.
Custom Context
A custom context value is a named value that you define once in the admin panel and use on any page and in any global component with context(site/…). Open Context in the admin panel and choose New value.
A key starts with site/, such as site/name or site/menu. A value is written like the value of an argument in a component call: a string, an integer, a bool, an array or a record. A value that does not parse is not saved, and the editor marks where the error is.
In v0.9, every page wrote the site name and the whole menu again in its layout call. Now the menu is one value:
[
{ text: "Home", url: "/", current: "__auto", children: [] },
{ text: "Blog", url: "/blog", current: "__auto", children: [] }
]
and every page writes the same call:
{{ UMONO_LAYOUT
site-name = context(site/name) home-url = "/" menu-label = "Main menu"
menu = context(site/menu) content = BODY footer = FOOTER_BODY
}}
current: "__auto" lets Umono mark the entry of the page being rendered. On /blog, the second entry gets aria-current="page". __auto works in any LINK, not only in the menu.
A value can be renamed or deleted at any time. The editor shows how many pages use its key, and the pages that lose it are listed under System → Errors. The guide is at Custom context.
Signed Contracts and Mirrors
Every contract on umono.dev is now signed with minisign. The first time a contract version is activated on a site, Umono downloads only its signature and verifies the contract.toml in the theme's package with a public key it has built in. In v0.9, Umono downloaded the contract and compared it byte by byte.
Because the signature proves the contract, the file no longer has to come from umono.dev. A mirror is a server of your own that serves the same files at the same paths, for example on a network that is closed to the internet. Point Umono at it in .env:
UMONO_REGISTRY=https://registry.example.lan
The mirror replaces umono.dev completely, and Umono never falls back to umono.dev. The confirm of Activate in Settings → Themes names the host that will be asked. The request is the same as before: a single request that carries no site address.
Anyone can verify a contract on umono.dev or on a mirror with minisign -V. The public key is on the home page of umono.dev. The guide is at Using a mirror.
Favicon
Upload a favicon under Settings → General. It can be a PNG or an ICO file of up to 256 KiB, and it is served at /favicon.ico. The favicon belongs to the site, not to the theme, so it stays when you activate another theme. The site, its 404 page and the admin panel all use the same one.
Compono v0.8
Compono is updated from v0.7.1 to v0.8.0. It brings the value parsing of custom context and the __auto of LINK. The HTML of existing pages does not change.
Security
Known vulnerabilities in Umono's dependencies and in the Go standard library are now scanned with govulncheck four times a day, on both main and the latest release. The same scan runs on every pull request. A release that fixes a vulnerability affecting Umono is published within 24 hours after the fixed version of the dependency or of Go is released. Compono is scanned the same way. The details are in SECURITY.md.
v0.9.2 and v0.9.3 updated Go dependencies and the Go toolchain with security fixes. v0.10 includes both.
Other Improvements
- When a theme's contract uses Compono syntax that this Umono does not know, activation now says that Umono is out of date instead of showing the raw error.
- The placeholder of the global component editor now starts its parameter line with
~, as v0.9 requires. - Umono no longer removes the keys it does not write, such as
UMONO_REGISTRY, when it rewrites.envon the first start. - The contributing guides of Umono and Compono are rewritten. Feedback and questions are welcome in GitHub Discussions.
For Theme Authors
Themes built for v0.9 work unchanged.
Upgrade Notes
Umono v0.10 requires CLI v0.4.0 or later. Run the install script again to update the CLI, then upgrade the site:
umono upgrade
umono restart
On the first start, Umono updates the database by itself. Contracts that are already activated on the site are stored and are not verified again. Activating a new contract version needs its signature from umono.dev or from a mirror.
Summary
v0.10 removes repetition from content: the site name, the menu and the footer links are written once and the menu marks the current page by itself. Signed contracts keep themes trustworthy without depending on umono.dev, so a site on a closed network can activate them through its own mirror. A favicon and a vulnerability scan four times a day complete the release.