|
|
@ -249,6 +249,8 @@ func main() {
|
|
249
|
249
|
fmt.Fprintf(out, `
|
|
250
|
250
|
|
|
251
|
251
|
<script>
|
|
|
252
|
var baseTitle = document.title;
|
|
|
253
|
|
|
252
|
254
|
var currentFilter = null;
|
|
253
|
255
|
|
|
254
|
256
|
window.addEventListener("DOMContentLoaded", function(ev) {
|
|
|
@ -312,6 +314,8 @@ func main() {
|
|
312
|
314
|
article.classList.add("does-not-match");
|
|
313
|
315
|
}
|
|
314
|
316
|
}
|
|
|
317
|
|
|
|
318
|
document.title = baseTitle + " (Posts tagged '" + tag + "')";
|
|
315
|
319
|
}
|
|
316
|
320
|
|
|
317
|
321
|
function clearFilter() {
|
|
|
@ -321,6 +325,7 @@ func main() {
|
|
321
|
325
|
}
|
|
322
|
326
|
|
|
323
|
327
|
currentFilter = null;
|
|
|
328
|
document.title = baseTitle;
|
|
324
|
329
|
}
|
|
325
|
330
|
</script>`)
|
|
326
|
331
|
fmt.Fprintf(out, "\n</body>\n</html>\n")
|