Просмотр исходного кода

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
Родитель
Сommit
8e85b34b8b
1 измененных файлов с 3 добавлено и 1 удалено
  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
		}