Theme error

After trying out some new templates, I started getting the following message:

Theme error: Error building site: failed to render pages: render of “home” failed: “layouts/index.html:21:54”: execute of template failed: template: index.html:21:54: executing “index.html” at <$paginator.Next.Permalink>: can’t evaluate field Permalink in type *page.Pager

Nothing looks out of whack, and I have not changed anything. At first, the site loaded despite the warning. Now, it is returning a message saying Not Found. Again, I didn’t touch anything related to the themes other than try a couple of new ones out. Any help would be appreciated.

<div class = "paginator">
  {{ if .Paginator.HasPrev }}
    <a class = "previous" href="{{ .Paginator.Prev.URL }}">←Newer Posts</a>
  {{ end }}
  {{ if .Paginator.HasNext }}
    <a class="next" href="{{ .Paginator.Next.URL }}">Older Posts→</a>
  {{ end }}
</div>

This is my Paginator. I don’t think Permalink is correct. Possibly from an outdated version of Hugo?

1 Like

That did it. Changing Permalink to URL in three spots cleared it. Thank you for the help.