idea for random blog entry selector

idea: add random selection button to individual blog categories ( need to find a way to automate this)

ways to automate:

  • use js to read list of entries, fetch URLs for each entry
  • compile array of urls

OR for collections organised by year (future thing)

run js locally to do the following:

  • fetch all year indexes
  • read lists from each index
  • fetch urls from each list item
  • compile an array with all urls

then i can drop the array into the randomiser & be done with it

i should run this locally before publication so the client doesn't have to request multiple pages to compile a list of entries every time they load the blog indexes, which is inefficient & highly unreliable

this also applies to the standard blog index pages, which are already organised by year

at the moment i'm manually adding every entry to an array so the 'see random' button can show an entry