Loading data in custom page

I am using Ghost 2.0 and I have created a page called news.hbs.

I have the routes as follows,

      /news/: news

        permalink: /{slug}/
        template: index

      tag: /tag/{slug}/
      author: /author/{slug}/

The routes are working fine and when I try to load the posts by the following method,

{{#foreach posts}}
{{> "loop"}}

I can’t get all the posts but by using {{get}} I can get the posts but I need to integrate custom pagination (LOAD MORE) in that page. So I want to get the posts without using {{get}} helper.

How to get all the posts without using {{get}}.

Kindly assist me.

You probably want to use a channel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.