# Posts per page

The **Sense** 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 `.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": 9
  }
  ```

{% 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 `.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 %}
