diff --git a/templates/partials/timeline_month.html b/templates/partials/timeline_month.html index 96fe4cd..e241cbc 100644 --- a/templates/partials/timeline_month.html +++ b/templates/partials/timeline_month.html @@ -1,13 +1,11 @@ -
-

- {{ month.heading }} - -

-
+

+ {{ month.heading }} + +

{% for event in month.events %}
{# Timeline node/bullet #} diff --git a/templates/timeline.html b/templates/timeline.html index 365c2a2..0dfb4bc 100644 --- a/templates/timeline.html +++ b/templates/timeline.html @@ -201,6 +201,9 @@ mutations.forEach((mutation) => { mutation.addedNodes.forEach((node) => { if (node.nodeType === Node.ELEMENT_NODE) { + if (node.matches?.(".timeline-heading")) { + stickyObserver.observe(node) + } const heading = node.querySelector?.(".timeline-heading") if (heading) { stickyObserver.observe(heading)