Skip to content

Commit f6828e0

Browse files
techknowlogicklunny
authored andcommitted
Fix blank topic on explore repo list (#3956)
1 parent c14870c commit f6828e0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

templates/explore/repo_list.tmpl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,13 @@
1717
</div>
1818
</div>
1919
{{if .DescriptionHTML}}<p class="has-emoji">{{.DescriptionHTML}}</p>{{end}}
20-
<div>
21-
{{range .Topics}}<div class="ui green basic label topic">{{.}}</div>{{end}}
22-
</div>
20+
{{if .Topics }}
21+
<div>
22+
{{range .Topics}}
23+
{{if ne . "" }}<div class="ui green basic label topic">{{.}}</div>{{end}}
24+
{{end}}
25+
</div>
26+
{{end}}
2327
<p class="time">{{$.i18n.Tr "org.repo_updated"}} {{TimeSinceUnix .UpdatedUnix $.i18n.Lang}}</p>
2428
</div>
2529
{{else}}

0 commit comments

Comments
 (0)