# Posts per page

You can control how many posts are displayed on your homepage and archive pages, such as tags and authors. This setting is configured in the theme’s `package.json` file and doesn’t require any additional tools or local Ghost setup.

### Change Posts per Page

Follow the steps below:

{% stepper %}
{% step %}
**Unzip the Theme**

* Unzip the theme `sand.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": 8
}
```

{% endstep %}

{% step %}
**Update the Value**

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

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

{% endstep %}

{% step %}
**Save and Rezip the Theme**

* After editing, save the file and compress the theme folder back into a `sand.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 %}
