{{define "content"}}{{with .Data}}{{$d := .}}

Search engines

What Google and Bing know about the site, and IndexNow, which tells Bing and other engines the moment a page changes, so they don't wait for their next crawl. Google doesn't use IndexNow; it reads the sitemap.

{{if not .Sites}}

Add your websites to the profile first.

{{else}} {{if gt (len .Sites) 1}}{{end}}

Set the site up for search engines

One pull request that adds what's missing: the IndexNow key file, a robots.txt that names the sitemap (unless the site has its own), and the sitemap itself if the Hugo config turns it off. A Hugo build checks all three come out.

{{with .Setup}} {{if .Error}}

Last try, {{ago .At}}: {{.Error}}

{{else}}

Opened {{ago .At}}: pull request #{{.PRNumber}} ↗. {{range .Done}}{{.}} {{end}}
{{.Note}}

{{end}} {{end}}

IndexNow

Key {{.Key}}, published at {{.KeyURL}}: {{if .KeyLive}}the site serves it. Pages that go live through Changes or Briefs are submitted on their own. {{else}}not on the site yet. Merge the setup pull request above; until then nothing is submitted.{{end}}

{{if .KeyLive}}
{{end}} {{if .Pings}} {{range .Pings}}{{end}}
WhenPagesResult
{{ago .At}}{{range .URLs}}{{pagePath .}} {{end}} {{if .Error}}{{.Error}}{{else}}accepted ({{.Status}}){{end}}
{{end}}

Google: sitemaps

{{if not .GoogleConnected}}

Connect Search Console and choose this website's property under Settings → Search engines.

{{else if .SitemapsErr}}

{{.SitemapsErr}}

{{else if .Sitemaps}} {{range .Sitemaps}}{{end}}
SitemapSubmittedLast readPagesProblems
{{.Path}}{{with .LastSubmitted}}{{ago .}}{{end}}{{with .LastDownloaded}}{{ago .}}{{else}}{{if .IsPending}}pending{{end}}{{end}} {{range .Contents}}{{if eq .Type "web"}}{{.Submitted}}{{end}}{{end}}{{if or (ne .Errors "0") (ne .Warnings "0")}}errors: {{.Errors}}, warnings: {{.Warnings}}{{else}}none{{end}}
{{else}}

Google has no sitemap for this site. Once the site has one, submit it in Search Console (Indexing → Sitemaps): Supermarket's access is read-only.

{{end}}

Bing

{{if not .BingSite}}

Save a Bing Webmaster API key under Settings → Search engines to see Bing's numbers.

{{else if .BingErr}}

{{.BingErr}} (site: {{.BingSite}})

{{else}} {{if .BingDays}}{{range .BingDays}}{{end}}
Week ofClicksImpressions
{{.Date.Format "2 Jan 2006"}}{{num .Clicks}}{{num .Impressions}}
{{else}}

No traffic data from Bing yet.

{{end}} {{if .BingQueries}}

Searches, last 4 weeks

{{range .BingQueries}}{{end}}
SearchImpressionsClicksPosition
{{.Query}}{{num .Impressions}}{{num .Clicks}}{{dec1 .Position}}
{{end}}

Crawl issues

{{if .BingIssues}}{{else}}

None.

{{end}} {{end}}
{{end}} {{end}}{{end}}