Skip to content

Conversation

palol
Copy link

@palol palol commented Jun 22, 2025

Random navigation

For "serendipity" ~ randomly skipping through a garden is really fun. An easy way to do that is to route /random to re-direct the website to another valid page on the website (even hidden).

Notes

  • The random selection respects the dg-publish frontmatter setting
  • Includes proper error handling and fallback behavior
  • Uses Eleventy's collections.note to dynamically generate the list of available notes
  • Additional details posted here: https://www.paologabriel.com/swamp/random-navigation/
  • Also includes details on adding a "button"
  • Example of hidden interaction ~ I hid a picture of my cats on the same website above. can you find it?
  • Could be a toggle in the plug-in, but that's beyond my skill set; also conflicts with a published page named "random"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant