Help with template not showing book posts

I have been using this html template for a while now and it has suddenly (recently) stopped showing book posts. It works fine for movies and tv shows, but I’m guessing it’s not finding .Title and therefore skipping them. I don’t get the title or summary to show up.

{{ define “main” }}

<div class="archive">

<div class="full-archives h-feed">

{{ $posts := where $.Site.RegularPages “Type” “post” }}

{{ range $category := (slice “books” “tv” “movies”) }}{{ $category | title }}


{{ $filtered := where $posts "Params.categories" "intersect" (slice $category) }}


<p>{{ len $filtered }} posts found in {{ $category }}</p>
        {{ range $filtered }}

<p class="h-entry">
	<a href="{{ .Permalink }}" class="u-url"><span class="dt-published" datetime="{{ .Date.Format "2006-01-02T15:04:05-0700" }}">{{ .Date.Format "Jan 2, 2006" }}</span></a>:
	{{ if .Title }}
	<span class="p-name"><b>{{ .Title }}</b></span>
	{{ end }}
	<span class="p-summary">{{ .Summary | truncate 150 }}</span>
</p>

{{ end }}
{{ end }}

</div>

</div>
{{ end }}

How would I even go about troubleshooting this?

I’d recommend downloading the markdown version of your blog— it’ll give you everything you need to run Hugo locally and see what’s going on more clearly.

Ok I’ll have to figure out how to do that, and how to run Hugo. Thanks.