{{ define "title" }}{{ .Tab }} settings{{ end }} {{ define "content" }}

Settings

{{ template "user/settings/fragments/sidebar" . }}
{{ template "sitesSettings" . }}
{{ end }} {{ define "sitesSettings" }}

Git Sites

{{ if .IsTnglHandle }}

Since your handle is on tngl.sh, it doubles as your sites domain—your site will be served from that subdomain automatically.

{{ else }}

Claim a subdomain of {{ .SitesDomain }} to serve a repository as a static site. Each account may hold one domain at a time. A released domain enters a 30-day cooldown before it can be claimed again.

{{ end }}
{{ if not .Claim }}
{{ template "claimDomainButton" . }}
{{ end }}
{{ if .Claim }} {{ template "activeClaim" . }} {{ else }}
no domain claimed yet
{{ end }}
{{ if .Claim }}

To deploy your site on this domain, read the docs.

{{ end }} {{ end }} {{ define "activeClaim" }}
{{ i "globe" "size-4 text-gray-400 dark:text-gray-500 flex-shrink-0" }}
{{ .Claim.Domain }} {{ i "circle-check" "size-3" }} active
{{ end }} {{ define "claimDomainButton" }}
{{ template "claimDomainModal" . }}
{{ end }} {{ define "claimDomainModal" }}

Choose a subdomain under {{ .SitesDomain }}. Only lowercase letters, digits, and hyphens are allowed.

.{{ .SitesDomain }}
{{ end }}