# Posts per page

The **Caards** theme allows you to control how many posts appear per page on your homepage and archive pages such as tags and authors.

This setting is managed in the theme’s `package.json` file and does **not** require installing any dependencies or running Ghost locally.

### Change Posts per Page

Follow the steps below:

{% stepper %}
{% step %}

#### Unzip the Theme

* Unzip the theme `caards.zip` file on your computer.
  {% endstep %}

{% step %}

#### Open `package.json`

* In the root folder of the theme, open the `package.json` file using a code editor like [Visual Studio Code](https://code.visualstudio.com/) or [Sublime Text](https://www.sublimetext.com/).
  {% endstep %}

{% step %}

#### Locate the `config.posts_per_page` Field

* Find the following line inside the file:

  ```json
  "config": {
    "posts_per_page": 10
  }
  ```

{% endstep %}

{% step %}

#### Update the Value

* Change the number to your desired amount of posts per page.
* For example, to display 16 posts per page:

  ```json
  "config": {
    "posts_per_page": 16
  }
  ```

{% endstep %}

{% step %}

#### Save and Rezip the Theme

* After editing, save the file and compress the theme folder back into a `caards.zip` file.
  {% endstep %}

{% step %}

#### Upload the Updated Theme

* In Ghost Admin, go to: **Settings** > **Site** > **Theme** > **Change theme** > **Upload Theme** `yoursite.com/ghost/#/settings/theme`
  {% endstep %}
  {% endstepper %}

### Recommended Tools

To safely edit the theme files, always use a code editor that supports UTF-8 encoding and JSON formatting, such as:

* [Visual Studio Code](https://code.visualstudio.com/)
* [Sublime Text](https://www.sublimetext.com/)

{% hint style="danger" %}
Avoid using basic text editors like Notepad or word processors like Word — they can break the file structure, add hidden characters, or corrupt encoding, which may cause errors when uploading the theme.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ektothemes.com/guides/caards/advanced/posts-per-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
