diff --git a/crates/forge-web/assets/nav.js b/crates/forge-web/assets/nav.js index 33b2e92..19419cc 100644 --- a/crates/forge-web/assets/nav.js +++ b/crates/forge-web/assets/nav.js @@ -145,7 +145,7 @@ function adopt(doc, keepFields, dd, jobs) { document.title = doc.title; - ['lang', 'data-theme', 'data-accent-light', 'data-accent-dark', 'data-base-light', 'data-base-dark', 'data-sidebar', 'data-ui'].forEach(function (name) { + ['lang', 'data-theme', 'data-accent-light', 'data-accent-dark', 'data-base-light', 'data-base-dark', 'data-sidebar', 'data-ui', 'data-rel-words', 'data-rel-now'].forEach(function (name) { if (doc.documentElement.hasAttribute(name)) { root.setAttribute(name, doc.documentElement.getAttribute(name)); } else { root.removeAttribute(name); } }); @@ -172,6 +172,7 @@ syncLive(); syncPush(); syncTick(); + syncRel(); } // The log tail is a terminal: it opens at its end. A reader who scrolls up keeps their place. @@ -1514,6 +1515,56 @@ tickAll(); } + // Relative times. A `