From 2c94436b5f575f7efb05d7fff1ba9b0a449ccf22 Mon Sep 17 00:00:00 2001 From: John Hess Date: Tue, 4 Jun 2024 23:57:31 -0500 Subject: [PATCH] use urls available both with and without a baseurl --- _includes/header.html | 2 +- assets/js/main.js | 2 +- index.html | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/header.html b/_includes/header.html index 0fd583f..f7dbf43 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -15,7 +15,7 @@
- Paddy, the Butter Box Mascot + Paddy, the Butter Box Mascot
{% t butter_box_title %}
\ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js index b76fcb2..0fe5213 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -37,7 +37,7 @@ btnModal.addEventListener('click', (event) => { // change display of #usb-butter to inherit const usbButter = document.querySelector('#usb-butter'); if (usbButter) { - fetch('/usb-butter') + fetch(usbButter.dataset.url) .then(response => { console.log(response); if (response.status === 200) { diff --git a/index.html b/index.html index 09d1482..14600a9 100644 --- a/index.html +++ b/index.html @@ -7,27 +7,27 @@ layout: default