{{define "skill-list.html"}} {{if .SourceErrors}}
{{range $source, $error := .SourceErrors}}
{{if eq $source "github"}}GitHub{{else if eq $source "gitlab"}}GitLab{{else if eq $source "skills.sh"}}SKILLS.sh{{else if eq $source "bitbucket"}}Bitbucket{{else if eq $source "codeberg"}}Codeberg{{else}}{{$source}}{{end}}: {{$error}}
{{end}}
{{end}} {{if .Skills}}
{{range .Skills}}

{{.Name}}

{{if eq .Source "local"}}Local{{else if eq .Source "skills.sh"}}SKILLS.sh{{else if eq .Source "github"}}GitHub{{else if eq .Source "gitlab"}}GitLab{{else if eq .Source "bitbucket"}}Bitbucket{{else if eq .Source "codeberg"}}Codeberg{{else}}{{.Source}}{{end}}
{{if .Description}}

{{truncate .Description 100}}

{{end}}
{{if .Version}}v{{.Version}}{{else if .RepoOwner}}{{.RepoOwner}}{{end}} {{if .Stars}}{{.Stars}} stars{{end}}
{{if .Tags}}
{{range .Tags}} {{.}} {{end}}
{{end}}
{{end}}
{{if .HasNext}}
Loading more...
{{end}} {{else}}

No skills found

{{if .Query}}Try a different search term.{{else}}Be the first to add a skill!{{end}}

Convert a spec
{{end}} {{end}}