Skip to content

Cannot index pages instead of posts #4

@tychotycho

Description

@tychotycho

In cli.js the original code is:

let context = {errors: [], posts: []};
. . .
context.posts = await ghost.posts.browse();

… which obviously fetches posts. However, changing the second line above to:

context.posts = await ghost.pages.browse();

… still fetches posts.

Is this hard-wired somewhere? Really should be able to fetch and index pages as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions