From 3bffe1cae116247c334a22297a66e028b21c798b Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Fri, 10 May 2024 11:31:28 -0400 Subject: [PATCH] filter top communities to local when specified --- templates/nav.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/nav.html b/templates/nav.html index 59be105..6712094 100644 --- a/templates/nav.html +++ b/templates/nav.html @@ -10,9 +10,11 @@ | {{ $host := .Host }} {{ range $i, $c := .TopCommunities}} + {{ if or (ne $state.Listing "Local") $c.Community.Local }} {{$c.Community.Name}} - {{ end }} + {{ end }} more ยป