-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Randomize member page? #69
Comments
is it enough/ok that the "random" order be fixed at build time? just asking, not yet sure how to implement this. though i think i would build a new list members_random from the existing list in members, in member-list.html |
Yes I think that will all work
…On Sunday, August 2, 2020, tilnow ***@***.***> wrote:
is it enough/ok that the "random" order be fixed at build time?
is it acceptable if we just start member list at some random location and
then go in order?
just asking, not yet sure how to implement this. though i think i would
build a new list members_random from the existing list in members, in
member-list.html
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#69 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAGMFW3S7E2YWU2SQOIVS5LR6WYZTANCNFSM4PR6WFTA>
.
|
looks like jekyll has a built in filter called |
In particular: https://stackoverflow.com/a/59833695 Cut-and-paste between lines 10 and 11 in ...And I'm realizing that the entire approach with taking the modulo of the date that we've use elsewhere is way too complicated; we should just be piping the array we want to randomize to |
the reason why i decided not to change that is that i now generate the "featured_one" as a number. that number is part of the site data and can be used all over the place. |
i see you did not push (neither did i yet - lets decide tonight). here is my code:
|
pushed. works. see at https://inspiring-villani-8898ca.netlify.app/members/ |
The member directory should be sortable by alphabetical order as currently shown, but that should not be the default view since it arbitrarily over-exposes some members and under-exposes others. Default sort order should be some flavor of random, so at each visit you see a different few people above the fold. Other sort orders can be added (alphabetical, chronological by join date, project contribution karma...). Potentially integrate this idea with the "featured" member thing... where the featured member is also the random top member or something.
The text was updated successfully, but these errors were encountered: