western-bioinfo / western-bioinfo.github.io

GitHub Pages repository for western-med-bioinfo
https://western-bioinfo.github.io/
1 stars 2 forks source link

Randomization of faculty listing on front page not working #16

Closed ArtPoon closed 1 year ago

ArtPoon commented 1 year ago

I added the following lines to the top level index.html to shuffle faculty cards: https://github.com/western-bioinfo/western-bioinfo.github.io/blob/e668425ded6bf756ea1b8a6cf28275a6608047cf/index.html#L126-L128

This seemed to be working when I was running a local development instance of the website (on localhost), but it seems to require rebuilding the static files whenever a source file is changed. Refreshing the page locally or on GH pages does not change the ordering.

ArtPoon commented 1 year ago

Since the objective is client-side functionality, I should probably re-implement this with JS.

ArtPoon commented 1 year ago

see https://stackoverflow.com/questions/27179385/how-do-i-shuffle-the-order-of-an-array-in-jekyll