{{if .Flash}}

{{.Flash}}

{{end}} {{if .Error}}{{end}} {{template "content" .}}
{{/* Settings pages share this frame: a heading, and the tabs on the left (grouped, as in brain). Call with the page: {{template "settings-start" $}} … {{template "settings-end"}}. */}} {{define "settings-start"}}

Settings

Your company, the accounts Supermarket posts with, the prospecting tools it reads, the AI it writes with, and your Federated Core.

{{end}} {{define "settings-end"}}
{{end}} {{/* Sign-ins running out: {{template "reminders" .Reminders}}. */}} {{define "reminders"}}{{range .}}

{{if .Expired}}{{.Network}}'s sign-in expired on {{.At.Local.Format "2 Jan 2006"}}.{{else}}{{.Network}}'s sign-in expires {{if eq .Days 0}}today{{else if eq .Days 1}}tomorrow{{else}}in {{.Days}} days{{end}}, on {{.At.Local.Format "2 Jan 2006"}}.{{end}} {{if .Expired}}Nothing can be published to {{.Network}} until you reconnect; scheduled posts for it come back to Posts.{{else}}After that, nothing can be published to {{.Network}} until you reconnect.{{end}}

Reconnect {{.Network}}
{{end}}{{end}} {{/* A secret's field: {{template "key-field" (dict "F" secretField "Set" bool)}}. Saved values are never shown; an empty field keeps what's saved. */}} {{define "key-field"}}
{{if .Set}}{{end}}
{{end}} {{/* Icons from Lucide (lucide.dev, ISC licence). */}} {{define "icon"}}{{end}} {{define "seo-sites"}} {{if not .Connected}}

Connect Google Search Console under Settings → Search engines first.

{{else if not .Sites}}

Choose the Search Console property for your website under Settings → Search engines.

{{else if gt (len .Sites) 1}}{{$d := .}} {{end}} {{end}} {{/* A Sites page's status, as a badge. */}} {{define "page-status"}} {{- if eq .Status "draft"}}draft {{- else if eq .Status "working"}}pushing… {{- else if eq .Status "pushed"}}on its branch {{- else if eq .Status "pr"}}pull request open {{- else if eq .Status "merged"}}{{if .LiveAt.IsZero}}merged, not live yet{{else}}live{{end}} {{- else if eq .Status "closed"}}closed {{- else if eq .Status "failed"}}failed {{- else if eq .Status "removing"}}removal pull request open {{- else if eq .Status "removed"}}{{if .GoneAt.IsZero}}removal merged, still on the site{{else}}removed{{end}} {{- end}}{{if and .Error (ne .Status "failed")}} to fix{{end}} {{end}} {{/* SEO: the morning check's chart, and the searches that gained and lost most (the check and the Monday report). */}} {{define "click-chart"}}
{{.Max}}0 {{with .Prev}}{{end}} {{range .Dots}}{{.Title}}{{end}} {{range .Labels}}{{.Text}}{{end}}
clicks this week · the week before, day for day
{{end}} {{define "query-changes"}} {{if or .Gains .Losses}}
{{template "query-list" dict "Title" "↑ Searches that gained most clicks" "List" .Gains}} {{template "query-list" dict "Title" "↓ Searches that lost most clicks" "List" .Losses}}

Every change counts in these two lists, however small: they're for a look. What really moved, past your thresholds, is listed on its own.

{{end}} {{end}} {{define "query-list"}}

{{.Title}}

{{with .List}} {{range .}}{{end}}
SearchClicksPosition
{{.Query}} {{num .Before.Clicks}} → {{if .NoData}}no data{{else}}{{num .After.Clicks}}{{end}} {{if .NoData}}{{dec1 .Before.Position}} → no data{{else if .New}}new {{dec1 .After.Position}}{{else}}{{dec1 .Before.Position}} → {{dec1 .After.Position}}{{end}}
{{else}}

None this week.

{{end}}
{{end}}