Pārlūkot izejas kodu

Fix filtering for different tags in sequence

If the posts were filtered by one tag first, and then another, the
displayed posts would only be those matching *both* tags, without this
being indicated in the url (and different after a reload).
Lucas Stadler 9 gadi atpakaļ
vecāks
revīzija
8e85b34b8b
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      go/blog/blog.go

+ 3 - 1
go/blog/blog.go

@ -312,7 +312,9 @@ func main() {
312 312
					}
313 313
				}
314 314
			}
315
			if (!matches) {
315
			if (matches) {
316
				article.classList.remove("does-not-match");
317
			} else {
316 318
				article.classList.add("does-not-match");
317 319
			}
318 320
		}