Files
supermarket/internal/web/templates/seo-briefs.html
T
davidandClaude Opus 5.5 68c224f51b Phase 3 part 6: briefs and pages
A brief for a search (a new page) or a page (a rewrite) starts from what
Search Console shows the page for, reads the live top 5 with Claude's web
search (unread results marked, never guessed), and gives the title,
description, H1, angle, sections, questions, internal links to pages we
have, and the questions only the owner can answer. The page is drafted
around those answers, with no invented tests, prices or customers; every
sentence claiming an experience must be confirmed before a pull request
adds or rewrites the page, checked with a Hugo build. Merged pages are
followed to the live site. Schema 17.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:18:49 -07:00

36 lines
2.8 KiB
HTML

{{define "content"}}{{with .Data}}{{$d := .}}
<div class="heading"><h1>Briefs and pages</h1></div>
<p class="lede">A brief is the page before the page. It starts from what Google really shows the page for, then reads the live top 5 for the search, then says what the page must promise and cover, in what order, and what only you can answer. You answer; the AI writes the page around your answers; you confirm every sentence that claims an experience; a pull request carries it to the site.</p>
{{if not .Sites}}
<section class="card empty"><p>Add your websites to the <a href="/settings/profile">profile</a> first.</p></section>
{{else}}
{{if gt (len .Sites) 1}}<nav class="tabs">{{range .Sites}}<a href="/seo/briefs?site={{.Index}}" {{if eq .Index $d.Current.Index}}aria-current="page"{{end}}>{{.URL}}</a>{{end}}</nav>{{end}}
<form method="post" action="/seo/briefs?site={{.Current.Index}}" class="card" data-busy="Writing the brief… (a minute or two)">
<h2>Write a brief</h2>
<div class="cols">
<label>For a new page, the search {{if .Picked}}<span class="small muted">(your picks: {{range $i, $k := .Picked}}{{if $i}}, {{end}}{{$k.Keyword}}{{end}})</span>{{end}}
<input name="keyword" list="picked" placeholder="e.g. google workspace alternative">
<datalist id="picked">{{range .Picked}}<option value="{{.Keyword}}">{{end}}</datalist></label>
<label>Or, to rewrite a page, its address <input name="page" placeholder="{{.Current.URL}}/pricing/"></label>
</div>
<p class="help">It uses up to 5 web searches to read the live top results. For a rewrite, the search defaults to the one the page is shown for most.</p>
<div class="actions"><button type="submit">Write the brief</button></div>
</form>
{{if .Briefs}}
<table class="list">
<thead><tr><th>Search</th><th>Page</th><th>Status</th></tr></thead>
<tbody>{{range .Briefs}}<tr>
<td><a href="/seo/briefs/{{.ID}}">{{.Keyword}}</a></td>
<td class="small">{{if .Page}}<a href="{{.Page}}" target="_blank" rel="noopener noreferrer">{{pagePath .Page}}</a>{{else}}new: {{.Path}}{{end}}</td>
<td>{{template "brief-status" .}}</td>
</tr>{{end}}</tbody>
</table>
{{end}}
{{end}}
{{end}}{{end}}
{{define "brief-status"}}{{if eq .Status "brief"}}<span class="badge draft">brief: your answers</span>{{else if eq .Status "page"}}<span class="badge draft">page drafted: check it</span>{{else if eq .Status "applying"}}<span class="badge scheduled">making the pull request…</span>{{else if eq .Status "pr"}}<a class="badge" href="{{.PRURL}}" target="_blank" rel="noopener noreferrer">pull request #{{.PRNumber}} ↗</a>{{else if eq .Status "merged"}}<span class="badge">merged</span>{{else if eq .Status "live"}}<span class="badge published">live</span>{{else if eq .Status "failed"}}<span class="badge failed">failed</span>{{end}}{{end}}