{"name":"hexo-generator-index","version":"2.0.0","keywords":["hexo","generator","index","home"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-generator-index@2.0.0","maintainers":[{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"}],"homepage":"http://hexo.io/","bugs":{"url":"https://github.com/hexojs/hexo-generator-index/issues"},"dist":{"shasum":"15e71f4d28ee9d2172e2d77e8d1dba04882edc8f","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-2.0.0.tgz","fileCount":5,"integrity":"sha512-q/29Vj9BZs0dwBcF+s9IT8ymS4aYZsDwBEYDnh96C8tsX+KPY5v6TzCdttz58BchifaJpP/l9mi6u9rZuYqA0g==","signatures":[{"sig":"MEUCIQDBJ9aJ1oshHE54makf/ZdecFcefQvmX7QfU6wwkOY1AwIgYrCVC3PHuLTLmvErtnj/c7N6Lcw4UHicnVtq/qecJwM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4779,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfL3zaCRA9TVsSAnZWagAAdcEP/ih0zTPLBq/A0rzkPI/H\n7vM0S3M/89fmsPobVHG0CWNq5PTplCIBJ9CT82hqFXnbTZUNV2qyPz23aXjT\nliVBSN5SVzysxqaNXITRnxIbBldmtt0+1oYWVxTauKAIAeXoZ7IxpxnFxgaL\ni/a3rEwgoerkUaYhlW9DiayXryQ6ObPuBWZvWN8RlOFuyaQLINz4+87vKecs\nDVBCudBbxVNspdW0pEfyTNhB4HOQmZoM8kV4XYiLvRxqVAnZFxouIWUTNcXb\nJK2szGFniMLTBLLFnk8nevw2RKM+erfT4j6CdXmmBjPnGJDYVUeMgTx5liyM\nSZRs6Iulnic4HODzvj0x+oN6/kbBWdwswCI/JFJZKzWN1AzsGRnk8vhae2gy\n6bAe/QadhOLdTJxWEe9SZLQOWNmGsZH/XFVRzi3S+jW+jmqYkeHNgvTOPfOn\nrXna1jXMDW/48rZZX+9Hu9wfJ6DdUZ/P4Do53dhdxmdhiCGrqpTbpCNyuZw/\n/TJJZ+u4ilUTKJHJwSTcdFyDB/nQzzjOANMCkfXRgsAJYlR1LeoWAQFgvU/4\nqvYszY5ssO55tSYlw6lTyjoQ7LjB9zv5orNvvPYvlIrkyRDwlemCO1ZegZ54\n223Zp2T1t9r3fqCG3YnXbmKBBcCsoxZ1ojrpmmDVvcZuCLs7clF1bMfNpvu6\nOJaK\r\n=U4Fv\r\n-----END PGP SIGNATURE-----\r\n","size":2442,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-2.0.0.tgz"},"main":"index","engines":{"node":">=10.13.0"},"gitHead":"b70a66aadbbb1d9da3954501c7225d60298b07c2","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc npm run test"},"_npmUser":{"name":"curben","email":"bushedge@protonmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-generator-index.git","type":"git"},"_npmVersion":"6.14.6","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"12.18.3","dependencies":{"timsort":"^0.3.0","hexo-pagination":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","hexo":"^5.0.0","mocha":"^8.0.1","eslint":"^7.1.0","eslint-config-hexo":"^4.1.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-generator-index_2.0.0_1596947674412_0.9513809818352543","host":"s3://npm-registry-packages"},"readme":"# hexo-generator-index\n\n[![Build Status](https://github.com/hexojs/hexo-generator-index/workflows/Tester/badge.svg?branch=master)](https://github.com/hexojs/hexo-generator-index/actions?query=workflow%3ATester)\n[![NPM version](https://badge.fury.io/js/hexo-generator-index.svg)](https://www.npmjs.com/package/hexo-generator-index)\n[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-generator-index.svg)](https://coveralls.io/r/hexojs/hexo-generator-index?branch=master)\n\nIndex generator for [Hexo].\n\nIt generates an archive of posts on your homepage, according to the `index` or `archive` layout of your theme.\n\n## Installation\n\n```bash\nnpm install hexo-generator-index --save\n```\n\n## Options\n\nAdd or modify the following section to your root `_config.yml` file.\n\n```yaml\nindex_generator:\n  path: \"\"\n  per_page: 10\n  order_by: -date\n  pagination_dir: page\n  layout: [\"index\", \"archive\"]\n```\n\n- **path**: Root path for your blog's index page.\n  - default: `\"\"`\n- **per_page**: Posts displayed per page.\n  - default: [`config.per_page`](https://hexo.io/docs/configuration.html#Pagination) as specified in the official Hexo docs (if present), otherwise `10`\n  - `0` disables pagination.\n- **order_by**: Posts order.\n  - default: `-date` (date descending)\n- **pagination_dir**: URL format.\n  - default: `page`\n  - e.g. set `awesome-page` makes the URL ends with `awesome-page/<page number>` for second page and beyond.\n- **layout**: custom layout.\n  - defalut: `[\"index\", \"archive\"]`\n\n## Usage\n\nThe `sticky` parameter in the post [Front-matter](https://hexo.io/docs/front-matter) will be used to pin the post to the top of the index page. Higher `sticky` means that it will be ranked first.\n\n```yml\n---\ntitle: Hello World\ndate: 2013/7/13 20:46:25\nsticky: 100\n---\n```\n\n## Note\n\nIf your theme define a non-archive `index` layout (e.g. About Me page), this plugin would follow that layout instead and not generate an archive. In that case, use [hexo-generator-archive](https://github.com/hexojs/hexo-generator-archive) to generate an archive according to the `archive` layout.\n\n## License\n\nMIT\n\n[Hexo]: https://hexo.io/\n","publish_time":1596947674533,"_cnpm_publish_time":1596947674533,"dist-tags":{"latest":"4.0.0"}}