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
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.
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 7 months ago · Edit answer