Sfoglia il codice sorgente

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 anni fa
parent
commit
8e85b34b8b
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  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
		}