Your sites Log in Sign up Menu

Exclude posts from /random?

It doesn't look like there is any templating power to how "/random" is resolved. I notice though that random script will show any entry on my blog even it has a "search: no" metadata. In fact it appears that random script just loves showing those "hidden" entries )), giving them a priority.

Could we please:

a). agree to exclude "search: no" entries from the /random, and perhaps

b). introduce a new metadata "random: no" or a template view, or, at least,

c). give an option to disable random script in site settings


17 days ago, 2 replies   random   Improve this question

If you create a page with the link /random you can disable this feature. You can leave it empty or add some JS to redirect the page to your homepage:

<script>document.location.href="/";</script>

I'll have a think about excluding Search: no posts from the list of posts from which /random selects. My gut reaction is that it's not obvious that Search: no should have this side effect.

Answered 17 days ago · Improve this answer

Thanks, creating a /random page is as good as option "c.)"! I tried to write a script, but after one hour of attempting to nest mustache tags I decided that it's not worth it and made a funny drawing for an empty "random page" instead: https://lev.lc/random

Answered 17 days ago · Improve this answer