Ghost Config
All ghost themes provides package.json
file with predefined configurations. You can edit this file to change the theme configurations.
Editing Theme Code is required to add these changes.
Posts per page
The posts_per_page
defines the number of posts that appear in the blog list until itβs paginated. You can change it in the package.json
file:
"config": {
...
"posts_per_page": 12,
...
}
We recommend using the following values only, because our theme designed to show and hide some posts in grid on Homepage automatically based on the screen size:
6
- single row12
- 2 rows18
- 3 rows24
- 4 rows
Image sizes
Ghost can handle responsive image sizes, and this is defined in the package.json
file, under the image_sizes
property:
"config": {
...
"image_sizes": {
"36": {
"width": 36
},
"46": {
"width": 46
},
"72": {
"width": 72
},
"92": {
"width": 92
},
"200": {
"width": 200
},
"300": {
"width": 300
},
"400": {
"width": 400
},
"600": {
"width": 600
},
"1200": {
"width": 1200
},
"1600": {
"width": 1600
},
"2000": {
"width": 2000
}
},
...
}
The image sizes defined there will be used to generate copies of images at the specified sizes when uploading images in Ghost Admin.