{{define "content"}}{{template "settings-start" .}}{{with .Data}}{{$set := .Set}}

Social accounts

The keys Supermarket reads posts with, and the sign-ins it publishes with. Keys are kept in secrets.json in Supermarket's data folder, readable only by you; saved values are never shown, and an empty field keeps what's saved.

{{/* The key fields of every card belong to this one form (form="accounts"), so each card's Save saves them all, and the sign-in forms aren't nested. */}}
{{range .Networks}}{{$name := .Name}}

{{.Name}} {{with .Connect}}{{if .Signed}}connected{{with .Account}} as {{.}}{{end}}{{else}}not connected{{end}}{{end}}

{{range .Fields}}
{{if index $set .Name}}{{end}}
{{end}} {{with .Connect}}

Sign in to post

{{if .Signed}}

Connected{{with .Account}} as {{.}}{{end}}{{if not .At.IsZero}}, {{ago .At}}{{end}}.

{{end}}

{{.Setup}} {{.Redirect}}{{with .Note}}
{{.}}{{end}}

{{end}}
{{end}} {{end}}{{template "settings-end"}}{{end}}