Files
supermarket/internal/web/templates/seo-keywords.html
T
davidandClaude Opus 5.5 c0a5ddf77f Phase 3 part 5: the next keywords
Candidates a site has no page for, from Search Console searches it ranks
weakly for, the profile's keywords and customers' problems, the signals'
search lines, and competitors' sitemaps; each checked against our own
pages. Buyer searches first. On request, Claude's web search reads the
live top 3 and types each result (big brand, marketplace, forum, small
site), and keywords are ranked by who has to be beaten. Pick, dismiss or
bring back. Schema 16.

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

55 lines
3.5 KiB
HTML

{{define "content"}}{{with .Data}}{{$d := .}}
<div class="heading">
<h1>Next keywords</h1>
{{if .Current}}<div class="buttons">
<form method="post" action="/seo/keywords?site={{.Current.Index}}" data-busy="Looking…"><button type="submit" class="secondary">Look for keywords</button></form>
</div>{{end}}
</div>
<p class="lede">Searches your site has no page for yet, from four places: what Google already shows you for but weakly (below page two), your profile's keywords and your customers' problems, your signals' search lines, and the topics your competitors' sites cover. Each is checked against your own pages, so “no page” means no page. Buyer searches (best, price, vs, alternative, hosting…) come first. Search volume and difficulty aren't available; what counts is who you'd have to beat, so read a keyword's live top 3 before you pick it. Then pick one: not ten.</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/keywords?site={{.Index}}" {{if eq .Index $d.Current.Index}}aria-current="page"{{end}}>{{.URL}}</a>{{end}}</nav>{{end}}
{{with .picked}}
<h2>Picked</h2>
{{range .}}{{template "keyword" .}}{{end}}
{{end}}
<h2>Candidates</h2>
{{with .NoSearch}}<p class="help">Reading the top results needs Claude with web search: {{.}}</p>{{end}}
{{range .new}}{{template "keyword" .}}{{else}}
<section class="card empty"><p>No candidates yet. <em>Look for keywords</em> gathers them; it reads your competitors' sitemaps, so it can take a minute.</p></section>
{{end}}
{{with .dismissed}}
<details><summary>Dismissed ({{len .}})</summary>{{range .}}{{template "keyword" .}}{{end}}</details>
{{end}}
{{end}}
{{end}}{{end}}
{{define "keyword"}}
<section class="card keyword" id="k-{{.ID}}">
<div class="prospect-head">
<div>
<h3>{{.Keyword}} {{if eq .Intent "buyer"}}<span class="badge published">buyer</span>{{end}}</h3>
<p class="small muted">From {{range $i, $s := .Sources}}{{if $i}}, {{end}}{{$s}}{{end}}.
{{if .Impressions}}Google already shows you for it: {{num .Impressions}} impressions in 90 days at position {{dec1 .Position}}{{with .ShownOn}}, on <a href="{{.}}" target="_blank" rel="noopener noreferrer">{{pagePath .}}</a>{{end}}.{{end}}
Volume and difficulty: not available.</p>
</div>
<div class="row-actions">
{{if ne .Status "picked"}}<form method="post" action="/seo/keywords/{{.ID}}/pick"><button type="submit" class="small">Pick this one</button></form>{{end}}
{{if eq .Status "dismissed"}}<form method="post" action="/seo/keywords/{{.ID}}/restore"><button type="submit" class="secondary small">Bring back</button></form>
{{else}}<form method="post" action="/seo/keywords/{{.ID}}/dismiss"><button type="submit" class="secondary small">Dismiss</button></form>{{end}}
</div>
</div>
{{if .Top}}
<p class="small"><strong>The live top 3</strong> ({{ago .TopAt}}){{if ge .Hard 0}}: {{if le .Hard 3}}winnable for a small site{{else if le .Hard 6}}a fight{{else}}held by the big ones{{end}}{{end}}</p>
<ol class="small">{{range .Top}}<li><a href="{{.URL}}" target="_blank" rel="noopener noreferrer">{{.Title}}</a> <span class="badge">{{.Kind}}</span> {{.Note}}</li>{{end}}</ol>
{{else}}
<form method="post" action="/seo/keywords/{{.ID}}/top" data-busy="Searching…" class="inline"><button type="submit" class="link small">Read the live top 3 (up to 3 web searches)</button></form>
{{end}}
</section>
{{end}}