You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I optimistically added the type: timeago option, but only now realise this is fixed after building and thus quite static (unless you rebuild your website very regularly..)
Either I should remove the type, or update README to explain how to use timeago.js with mkdocs.
The text was updated successfully, but these errors were encountered:
Then I could use on_page_content to insert some javascript at the bottom of the page before </body>, like
<!-- Get latest version from https://cdnjs.com/libraries/timeago.js --><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.0-beta.2/timeago.min.js" type="text/javascript"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/4.0.0-beta.2/timeago.locales.min.js" type="text/javascript"></script><script>constnodes=document.querySelectorAll('.timeago');timeago.render(nodes,'nl');</script>
Uh oh!
There was an error while loading. Please reload this page.
I optimistically added the
type: timeago
option, but only now realise this is fixed after building and thus quite static (unless you rebuild your website very regularly..)Either I should remove the type, or update README to explain how to use timeago.js with
mkdocs
.The text was updated successfully, but these errors were encountered: