Phase 3 part 7: Bing, IndexNow and search engine setup
SEO → Search engines: a pull request that adds the IndexNow key file, a robots.txt naming the sitemap, and turns the sitemap on when the Hugo config disables it (checked with a build); IndexNow submissions of pages that go live through Changes or Briefs once the key file is served; the sitemaps Search Console has; and, with an API key, Bing's traffic, searches and crawl issues. NewlyLive no longer queries while a result set holds the database's only connection. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -936,6 +936,30 @@ into `main`.
|
||||
- Bing Webmaster's API, for Bing's queries and crawl problems.
|
||||
- IndexNow on every merge.
|
||||
- The Search Console sitemap status.
|
||||
- **Built 2026-11-22** (no schema change):
|
||||
- `internal/api/bing` reads traffic, query stats and crawl issues,
|
||||
with an API key and the profile's Bing site (or the website's
|
||||
address).
|
||||
- `gsc.Sitemaps` lists the sitemaps Search Console has.
|
||||
- **IndexNow.** A 32-hex key is kept in settings. `KeyLive` checks the
|
||||
site serves `<key>.txt`. Once it does, `NewlyLive` submits the
|
||||
pages that went live through Changes or Briefs in the last 14 days
|
||||
and haven't been submitted, every 30 minutes, to
|
||||
api.indexnow.org. The last 30 submissions are kept.
|
||||
- **Site setup.** `Applier.SetupSite` opens one pull request,
|
||||
`supermarket/search-engines`, that adds `static/<key>.txt`, a
|
||||
`static/robots.txt` naming the sitemap (unless the site has one),
|
||||
and takes `sitemap` out of a one-line `disableKinds`. A build
|
||||
checks that sitemap.xml, robots.txt and the key file come out.
|
||||
- `hugorepo` gained `WriteFile`, `Exists`, `ConfigFile` and
|
||||
`EnableSitemap`. Files written are tracked, so commits never pick
|
||||
up Hugo's generated files.
|
||||
- The page is SEO → Search engines; the Bing key is under Settings →
|
||||
Search engines. Submitting a sitemap to Google needs a write
|
||||
scope, so the page says to do it in Search Console.
|
||||
- Fixed along the way: `NewlyLive` looked things up while a query
|
||||
still held the database's only connection, and would hang. It now
|
||||
reads all rows first.
|
||||
|
||||
Before the first part: a Google Cloud project with the Search Console API
|
||||
turned on and an OAuth client (redirect
|
||||
|
||||
Reference in New Issue
Block a user