Hello all,
So i have this partial in partials/blog-cards/bid-blog-card.html
<div class="single-card-layout two-card-layout">
{{ $paginator := .Paginate (where .Site.Pages "Params.type" "blog") }}
{{ range first 1 $paginator.Pages }}
<div class="single-card">
<div class="single-card__bg-img">
<div class="single-card__bg-img-inner" style="background:url('{{ .Params.image | relURL}}') center center; background-size:cover;">
</div>
<div class="date-holder">
<span>{{ .Lastmod.Format "January 2, 2006" }}</span>
</div>
</div>
<div class="single-card-body">
<div class="single-card-body__tags">
{{ range (.GetTerms "categories") }}
<a class="single-card-body__tags-link" href="{{ .Permalink }}">{{ .LinkTitle }}</a>
{{ end }}
</div>
<a href="{{ .Permalink }}" class="single-card-body__title" href="">{{ .Title}}</a>
<div class="single-card-body__description">
{{ .Content | truncate 250 }}
</div>
</div>
</div>
{{ end }}
</div>
When i import this in index.html it works fine but when i import this in any other pages it gives an error -
```
render of "page" failed: execute of template failed: template: home-sidebar-design-two/single.html:10:28: executing "main" at <partial "blog-cards/single-big-card.html" .>: error calling partial: "-/layouts/partials/blog-cards/single-big-card.html:3:31": execute of template failed: template: partials/blog-cards/single-big-card.html:3:31: executing "partials/blog-cards/single-big-card.html" at <$paginator.Pages>: error calling Pages: runtime error: invalid memory address or nil pointer dereference
Rebuild failed:
```
Also i found out that you can not use paginator on other single page templates.
So how can i show list of blogs on other single page templates ?
What is the issue and please guide with the solution.