diff --git a/scripts/zines.js b/scripts/zines.js index e50d2be..be714f8 100644 --- a/scripts/zines.js +++ b/scripts/zines.js @@ -20,7 +20,7 @@ function makeZine({ name, blurb, format, site, title }) { let bqP = document.createElement("p"); bqP.innerHTML = blurb; bq.append(bqP); - zine.append(bq);d + zine.append(bq); return zine; } @@ -52,7 +52,10 @@ function makeZinePage(zines) { let zineContainer = document.getElementById("zine-container"); -fetch("/scripts/zines2025.json") +let script = document.currentScript; +let zinefile = script.dataset.zinefile; + +fetch(zinefile) .then((response) => { if (!response.ok) { throw new Error(`HTTP error, status = ${response.status}`); diff --git a/zines/index.html b/zines/index.html index 7df21b7..7415fc6 100644 --- a/zines/index.html +++ b/zines/index.html @@ -16,7 +16,7 @@ - +