How to exclude content from list

I would like to exclude content from rendering in my list, but still have a permalink to the rendered page.

Essentially, I would like to have certain pages that are hidden from navigation, but that I can link to from a permalink. I tried to do something using categories as a filter, but it does not seem to work for me!

Thanks in advance!

Use a own parameter in frontmatter like “hideme = yes”

in your list template you can test it:

{{ if ne ( default .Params.hideme "no") "yes"}} ... {{end}}

With default you must not set hideme = "no" in all content files.