Phase 8 part 2: who links to you, from Bing

With a Bing Webmaster key, Supermarket reads once a week (or on Read
now) how many links Bing knows to each page of the site, and for the 25
most linked pages, the pages that link and their anchor text, into the
backlinks table. SEO → Links lists the linking sites, new ones first,
with the pages they link to and their link text; without a key it says
how to get one. A refused key keeps the last read, with the error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-24 08:31:27 -07:00
co-authored by Claude Opus 5.5
parent 54ed2e73c6
commit fc7dcf1f66
8 changed files with 532 additions and 2 deletions
+31
View File
@@ -27,6 +27,37 @@
{{end}}
{{template "last-read" $d.Last}}
</section>
<section class="card" id="bing">
<h2>Who links to you</h2>
<p class="small">From Bing Webmaster Tools, read once a week: how many links Bing has found to each of your pages, and, for the most linked ones, the pages that link and their link text. Google doesn't share its links through its API; Bing's index is a fair stand-in. The linking pages Plausible names are listed with them.</p>
{{if not $d.BingKey}}
<p class="warn-text small">Save a Bing Webmaster API key under <a href="/settings/search">Settings → Search engines</a>: in Bing Webmaster Tools, add and verify {{$d.Current.URL}} (it can import the site from Google Search Console), then Settings (the gear) → API access → API key.</p>
{{else}}
<form method="post" action="/seo/links/bing?site={{$d.Current.Index}}" data-busy="Reading Bing…" class="row">
<span class="small muted">{{with $d.Bing}}Read {{ago .At}}{{if .Total}}: {{num .Total}} {{if eq .Total 1}}link{{else}}links{{end}} to {{len .Pages}} {{if eq (len .Pages) 1}}page{{else}}pages{{end}}{{end}}.{{else}}Not read yet.{{end}} Bing names the site <code>{{$d.BingSite}}</code>.</span>
<button type="submit" class="secondary small">Read now</button>
</form>
{{with $d.Bing}}{{with .Error}}<p class="error-text small">{{.}}</p>{{end}}{{end}}
{{end}}
{{with $d.LinkingSites}}
<table class="list">
<thead><tr><th>Linking site</th><th class="num">Pages</th><th>To your pages</th><th>Link text</th></tr></thead>
<tbody>{{range .}}<tr>
<td><a href="{{.Example}}" target="_blank" rel="noopener noreferrer">{{.Host}}</a>{{if .New}} <span class="badge published">new</span>{{end}}<br><span class="small muted">since {{.FirstSeen}}</span></td>
<td class="num">{{num .Links}}</td>
<td class="small">{{range $i, $t := .Targets}}{{if lt $i 3}}{{if $i}}, {{end}}{{$t}}{{end}}{{end}}</td>
<td class="small">{{range $i, $a := .Anchors}}{{if $i}} · {{end}}“{{$a}}”{{end}}</td>
</tr>{{end}}</tbody>
</table>
{{with $d.MoreSites}}<p class="help">And {{.}} more sites.</p>{{end}}
{{else}}{{if $d.Bing}}<p class="help">Bing hasn't found links to the site yet.</p>{{end}}{{end}}
{{with $d.Bing}}{{with .Pages}}
<details class="small"><summary>Your most linked pages, by Bing's count</summary>
<table class="list compact"><tbody>{{range $i, $p := .}}{{if lt $i 15}}<tr><td>{{$p.Path}}</td><td class="num">{{num $p.Count}}</td></tr>{{end}}{{end}}</tbody></table>
</details>
{{end}}{{end}}
</section>
{{end}}
{{end}}{{end}}