Phase 6 part 5, step 2: start a new site
Sites → New site fills an empty Gitea repository with the theme, a hugo.toml in the site's brand and a starter home page: checked that the repository is empty and builds with Hugo, then the first commit is pushed to its default branch. The site joins the profile, and a First pages card builds its Home, About, Contact and product pages with the page builder; About and Contact join the top menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1418,6 +1418,27 @@ shared theme for new sites (deferred in Phase 5).
|
||||
by name as types even before a page uses them; Lead forms knows a theme
|
||||
site needs only the address. Tested with Hugo building every section.
|
||||
|
||||
**Step 2 built (2026-11-22; no schema change).** Sites → New site takes
|
||||
the empty repository (owner/name), the site's address (https), name,
|
||||
tagline, contact email, and brand (dark, primary and accent colors with
|
||||
color pickers, a font from a short list of Google Fonts, an optional
|
||||
logo). It checks the values (a control character, a bad color, a
|
||||
non-https address are refused), checks on Gitea that the repository is
|
||||
*empty* (Gitea's `empty` flag) and the token can push, builds the files
|
||||
with Hugo, and only then makes the first commit (`InitPush`: git init,
|
||||
commit, push to the default branch) in the site's working copy: the
|
||||
theme, `hugo.toml` (brand, header button to /contact/, footer, an empty
|
||||
`[params.leads] action` with the email), a starter home page (hero and
|
||||
closing band), a README and a .gitignore. The site is added to the
|
||||
profile and marked read. Its Sections and pages shows a *First pages*
|
||||
card: Home page, About page, Contact page and a product page per
|
||||
profile product, each one click to the page builder (a paid AI call;
|
||||
nothing is spent until clicked). New page kinds: *home* (replaces the
|
||||
site's home page, at /), *about* and *contact* (both join the top menu
|
||||
through `menus: main` in their front matter; contact is built around
|
||||
the form). Commits are by the Core's user "via Supermarket"
|
||||
(`commitAuthor`). Deploying the new site is still the user's Gitea hook.
|
||||
|
||||
**Part 1 built (2026-11-22; no schema change).** `internal/backup` makes
|
||||
backups with `VACUUM INTO` (to a `.part` file, then renamed; mode 0600)
|
||||
into `<data>/backups`, named `app-<yyyymmdd>-<hhmmss>-<kind>[-<note>].db`
|
||||
|
||||
Reference in New Issue
Block a user