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:
2026-11-22 15:27:22 -07:00
co-authored by Claude Opus 5.5
parent 5d7db5c5bf
commit 9ca09c1ffa
18 changed files with 709 additions and 7 deletions
+17
View File
@@ -26,6 +26,23 @@
{{end}}
{{with .Catalog}}
{{if $d.Theme}}
<section class="card">
<h2>First pages</h2>
<p>This site uses Supermarket's theme (version {{$d.Theme}}). Build its pages: each is written from your profile, opens for you to edit and preview, and goes to the site as a pull request.</p>
<div class="row-actions">
{{range $d.Kinds}}
<form method="post" action="/sites/pages"><input type="hidden" name="site" value="{{$d.Current.Index}}"><input type="hidden" name="kind" value="{{.}}">
<button type="submit" class="secondary" data-busy="Writing…">{{kindLabel .}}</button></form>
{{end}}
{{range $d.Products}}
<form method="post" action="/sites/pages"><input type="hidden" name="site" value="{{$d.Current.Index}}"><input type="hidden" name="kind" value="product"><input type="hidden" name="product" value="{{.Name}}">
<button type="submit" class="secondary" data-busy="Writing…">Product page: {{.Name}}</button></form>
{{end}}
</div>
<p class="small muted">Each uses the AI (a paid call). About and Contact join the top menu; Contact has a lead form: connect it under <a href="/sites/forms?site={{$d.Current.Index}}">Lead forms</a>.</p>
</section>
{{end}}
{{with $d.Commits}}
<h2>Latest on the published branch</h2>
<div class="table-wrap"><table class="compact">