Skip to content
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

Add Random button at the top. #107

Open
zorbathut opened this issue Dec 29, 2021 · 1 comment
Open

Add Random button at the top. #107

zorbathut opened this issue Dec 29, 2021 · 1 comment

Comments

@zorbathut
Copy link
Contributor

No description provided.

@zorbathut
Copy link
Contributor Author

Add a button to the category pages and the main page. It should go to a /random page which then redirects (using whatever the most appropriate redirect method is) to a post, either globally or in the category. Make sure the random page isn't cached, of course :D

Bonus points: At the bottom of a post, add a similar "random" button, but this one redirects to a random post that shares any tag (feel free to weight higher the more tags it has in common; don't make this complicated, though, just count up the tags in common and that's the weight.)

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

No branches or pull requests

1 participant