Summery partial dependent on category


I have been trying to use a different partial on the home page dependent on the category of the post however using a simply if as I would do with standard Hugo doesn’t work.

I would like one category to show all the post content and another to show a truncated version with read more.

Is there a way to get this working?

Im pretty sure this should work

{{ if in .Site.Taxonomies.categories "links" }}
  		{{ partial "link-summary.html" . }}
	{{ else}}
		{{ partial "summary.html" . }}
	{{ end }}

But it doesn’t. No errors just nothing.