GHOST CMS - Package.json
Package.json
The package.json
file is a set of meta data about a theme.
package.json
文件是一组关于主题的元数据。
Overview概述
The package.json
file is a required file and sets some information about your theme. Edit this file and keep it up to date with the relevant information about your publication's theme.
To reference a working example of a package.json
file, review the Casper file, and for further information about specific details of package.json handling, read the npm docs.
package.json文件是一个必需的文件,它设置了一些关于主题的信息。编辑此文件并使其与您的出版物的主题相关信息保持最新。
以引用包package.json文件的工作示例,查看Casper文件,了解包的详细信息。json处理,阅读npm docs。
Example
{
"name": "your-theme-name",
"description": "A brief explanation of your theme",
"version": "0.5.0",
"engines": {
"ghost-api": "v3"
},
"license": "MIT",
"author": {
"email": "your@email.here"
},
"config": {
"posts_per_page": 10,
"image_sizes": {}
}
}
The data in the file must be valid JSON, including double quotes around all property names. Every property except the last one should be separated by a comma.
文件中的数据必须是有效的JSON,包括所有属性名周围的双引号。除了最后一个属性外,所有属性之间都应该用逗号分隔
Additional properties额外的属性
Here are some of the most common optional properties that can be used in the package.json
file:
下面是可以在包中使用的一些最常见的可选属性package.json
文件:
config.posts_per_page
-每页的缺省文章数为5,或者您可以使用此属性设置自定义数量 the default number of posts per page is 5, or you can set a custom amount with this propertyconfig.image_sizes
-详情请参阅响应图像指南 read the responsive images guide for more detailsengines.ghost-api
- 说明您的主题与Ghost内容API的哪个版本兼容,默认为v0.1 indicate what version of the Ghost Content API your theme is compatible with, defaults to v0.1description
- 提供一个关于你的主题的简短描述,以及它的独特之处 provide a short description about your theme and what makes it uniquelicense
- 一个有效的许可证字符串,我们推荐MIT a valid licence string, we recommendMIT
最新文章
- 如何保存CONSOLE LOG
- 入口点函数的19种消息,AcRxArxApp只处理16种。
- iOS多线程编程指南(二)线程管理
- Effective Java 21 Use function objects to represent strategies
- python中split函数的使用
- Floyd 算法的动态规划本质
- Android开发-API指南-Fragment
- pjsip视频通信开发(上层应用)之拨号界面整体界面功能实现
- Docker系列一之基础快速入门企业实战
- 前端插件之Bootstrap Switch 选择框开关控制
- Odoo Linux服务器一键安装脚本使用指南
- 3Openwrt自定义CGI实现 前后端交互
- Go开发之路 -- 指针类型
- git--创建空的分支
- Linux 解压/压缩xxx.zip格式(unZip Zip的安装和使用)
- PHP实现敏感词过滤系统
- WebService 学习记录
- linux shell 语法学习
- 【小白的CFD之旅】小结及预告
- 第106天:Ajax中同步请求和异步请求
热门文章
- VLAN配置及Trunk接口配置
- ArcGIS Server10.4安装教程
- springboot+logback日志输出企业实践(下)
- 【原创】(十二)Linux内存管理之vmap与vmalloc
- 当linux突然修改任何设置都没办法联网时的绝对有效解决办法
- vue 结合 Echarts 实现半开环形图
- synchronized被这么问,谁能受得了
- iText + Freemarker实现pdf的导出,支持中文、css以及图片,页眉页脚,页眉添加图片
- lvm_lv_extend
- iOS13暂时关闭黑暗模式+应用内状态栏无法显示问题解决办法