Pagination Not working in Custom Template

Hello,

While i am trying to use the pagination in Custom Template for my Homepage Variation 2. It does not working there. I am not getting any data inside the condition.

Here following the code what i used in pagination.hbs.

<ul>
    {{#if prev}}
        <li class="prev-left"><a href="{{page_url prev}}"><i class="fa fa-angle-double-left" aria-hidden="true"></i></a></li>
    {{/if}}
    
    {{#if next}}
        <li class="next-right"><a href="{{page_url next}}"><i class="fa fa-angle-double-right" aria-hidden="true"></i></a></li>
    {{/if}}
</ul>

Pagination only working in my index.hbs but it does not working in custom-home.hbs

Thanks