diff --git a/404.html b/404.html index 5cb8e5a..fc54b8a 100644 --- a/404.html +++ b/404.html @@ -7,24 +7,10 @@
- +
+

404

-
-

404

- -

Page not found :(

+

Page not found :(

The requested page could not be found.

diff --git a/assets/js/scripts.js b/assets/js/scripts.js index 20f7ec7..81af71e 100644 --- a/assets/js/scripts.js +++ b/assets/js/scripts.js @@ -112,6 +112,14 @@ const setupListeners = (linkElement) => { document.querySelectorAll('#notes-entry-container a').forEach(setupListeners) +// Random note index + +if (typeof window.graphDataIndex !== 'undefined') { + const indexNodes = window.graphDataIndex.nodes + const randomNode = indexNodes[Math.floor(Math.random() * indexNodes.length)] + window.location = randomNode.path +} + // Notes graph const d3 = window.d3 diff --git a/bentway.html b/bentway.html index 23f4ddf..8aa0d08 100644 --- a/bentway.html +++ b/bentway.html @@ -19,7 +19,7 @@ - -