diff --git a/_includes/calendar.html b/_includes/calendar.html index 16acd79..3dfc677 100644 --- a/_includes/calendar.html +++ b/_includes/calendar.html @@ -65,7 +65,7 @@ - + diff --git a/static/js/calendar.js b/static/js/calendar.js index 6e22c03..15fed63 100644 --- a/static/js/calendar.js +++ b/static/js/calendar.js @@ -16,14 +16,14 @@ import rrulePlugin from 'https://cdn.skypack.dev/@fullcalendar/rrule@6.1.9?min'; import bootstrap5Plugin from 'https://cdn.skypack.dev/@fullcalendar/bootstrap5@6.1.9?min'; // Import our own module code sources. -import EventSources from '{% link static/js/event-sources.js %}'; -import FullCalendarEvent from '{% link static/js/event.js %}'; +import EventSources from '{{ site.baseurl }}{% link static/js/event-sources.js %}'; +import FullCalendarEvent from '{{ site.baseurl }}{% link static/js/event.js %}'; import { default as mapPlugin, map, addEventsInRangeTo -} from '{% link static/js/custom-views/map.js %}'; -import { default as calendarFilterListItem } from '{% link static/js/custom-elements/calendar-filter-list-item.js %}'; +} from '{{ site.baseurl }}{% link static/js/custom-views/map.js %}'; +import { default as calendarFilterListItem } from '{{ site.baseurl }}{% link static/js/custom-elements/calendar-filter-list-item.js %}'; export const corsbase = 'https://cors.anarchism.nyc'; export const domparser = new DOMParser(); diff --git a/static/js/custom-views/map.js b/static/js/custom-views/map.js index 808886d..e93d5d2 100644 --- a/static/js/custom-views/map.js +++ b/static/js/custom-views/map.js @@ -3,8 +3,8 @@ layout: none --- import { sliceEvents, createPlugin } from 'https://cdn.skypack.dev/@fullcalendar/core@6.1.9?min'; import momentTimezone from 'https://cdn.skypack.dev/moment-timezone@0.5.43?min'; -import { default as calendar } from '{% link static/js/calendar.js %}'; -import FullCalendarEvent from '{% link static/js/event.js %}'; +import { default as calendar } from '{{ site.baseurl }}{% link static/js/calendar.js %}'; +import FullCalendarEvent from '{{ site.baseurl }}{% link static/js/event.js %}'; export var map; diff --git a/static/js/main.js b/static/js/main.js index 960a546..7f40fc6 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -1,7 +1,7 @@ --- layout: none --- -import { default as calendar, calendarHeaderToolbar } from '{% link static/js/calendar.js %}'; +import { default as calendar, calendarHeaderToolbar } from '{{ site.baseurl }}{% link static/js/calendar.js %}'; function removePastFeaturedEvents () { var els = document.getElementById('featured-events').querySelectorAll('[data-not-valid-after]');