Adding posts from a tag after the content of a single post

This works really well, thank you!

I was also thinking about not rendering the related partial at all if another params would be set to true:

norelatedpartial: true

something i saw here: How to use partials for only certain pages - #2 by zwbetz

{{ if eq .Type “post” }}
{{- partial “some-partial.html” . -}}
{{ end }}

just modifying to something like:

{{ if . “Params.norelatedpartial” “ne” true }}
{{ partial “related.html” . }}
{{ end }

but i get errors:

render of “page” failed:/home/test/layouts/_default/single.html:37:6"e[0m: execute of template failed at <.>: can’t give argument to non-function . render: failed to render pages: can’t give argument to non-function .