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:
@@ -186,6 +186,8 @@ func (s *Server) Handler() (http.Handler, error) {
|
||||
mux.HandleFunc("GET /sites/pages/{id}", s.sitePagePage)
|
||||
mux.HandleFunc("POST /sites/pages/{id}/{action}", s.sitePageAction)
|
||||
mux.HandleFunc("GET /sites/publishing", s.sitesPublishingPage)
|
||||
mux.HandleFunc("GET /sites/new", s.newSitePage)
|
||||
mux.HandleFunc("POST /sites/new", s.newSiteCreate)
|
||||
mux.HandleFunc("GET /sites/forms", s.sitesFormsPage)
|
||||
mux.HandleFunc("POST /sites/forms/{action}", s.sitesFormsAction)
|
||||
mux.HandleFunc("GET /sites/previews", s.sitesPreviewsPage)
|
||||
@@ -508,6 +510,7 @@ var flashes = map[string]string{
|
||||
"deleted": "Deleted.",
|
||||
"x-connected": "X is connected.",
|
||||
"li-connected": "LinkedIn is connected.",
|
||||
"site-created": "The site is started: its first commit is on Gitea. Build its first pages below.",
|
||||
"li-page-connected": "The LinkedIn page app is connected.",
|
||||
"google-connected": "Search Console is connected. Choose each website's property below, then sync.",
|
||||
"synced": "Synced from Search Console.",
|
||||
|
||||
Reference in New Issue
Block a user