filter top communities to local when specified

This commit is contained in:
Ryan Stafford 2024-05-10 11:31:28 -04:00
parent 7053e07432
commit 3bffe1cae1

View file

@ -10,9 +10,11 @@
|
{{ $host := .Host }}
{{ range $i, $c := .TopCommunities}}
{{ if or (ne $state.Listing "Local") $c.Community.Local }}
<a href="/{{$host}}/c/{{fullcname $c.Community}}">{{$c.Community.Name}}</a>
<span> - </span>
{{ end }}
{{ end }}
<a href="/{{$host}}/search?searchtype=Communities&sort=TopMonth" class="more">more »</a>
</div>
<div id="mycommunities">