Skip to content

Commit

Permalink
Fix table template (#9)
Browse files Browse the repository at this point in the history
* Fix table template

* Fix table template
  • Loading branch information
rverst authored Oct 6, 2021
1 parent 765dd8f commit c151698
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func testStars() (stars map[string][]Star, total int) {

stars["C#"] = make([]Star, 0)
stars["C++"] = make([]Star, 0)
stars["C##"] = make([]Star, 0)

stars["C#"] = append(stars["C#"], Star{
Url: "https://github.com/rverst/test",
Expand All @@ -223,7 +222,7 @@ func testStars() (stars map[string][]Star, total int) {
StarredAt: time.Now(),
})

stars["C##"] = append(stars["C##"], Star{
stars["C#"] = append(stars["C#"], Star{
Url: "https://github.com/rverst/test_3",
Name: "test_3",
NameWithOwner: "rverst/test_3",
Expand Down
4 changes: 2 additions & 2 deletions table_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ Total starred repositories: `{{ .Total }}`

{{ range $key := .Keys }}
## {{ $key }}
{{ with (index $s $key) }}{{ range . }}
| Name | Description {{ if $wl }} | License {{ end }}{{ if $ws }} | Stars {{ end }} |
| ----- | -----{{ if $wl }} | :---:{{ end }}{{ if $ws }} |----:{{ end }} |
{{- with (index $s $key) }}{{ range . }}
| [{{- .NameWithOwner -}}]({{- .Url -}}) | {{ .Description }} {{ if .Archived }}(*archived*){{ end }} {{ if $wl }} | {{ with .License}}{{ . }}{{ else }}-{{ end }}{{ end }} {{ if $ws }}| ⭐️{{ .Stars }}{{ end }} |
{{- end }}
{{- end }}
{{- end }}
{{- if $wb }}

Expand Down

0 comments on commit c151698

Please sign in to comment.