{"name":"hexo-generator-index","version":"1.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@1.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":"8c9f157dcfa0af4f8417f77a4eb5b3831f69a719","tarball":"http://registry-npm.ywwl.com/hexo-generator-index/download/hexo-generator-index-1.0.0.tgz","fileCount":5,"integrity":"sha512-L25MdZ7e5ar/F8lIW+zBNNlA4f5A8CBUOYi1IQZCgL3wPVW+AWn66RSM5UVBAbiw5yxDeTHdk0sJYXbhSBaOFQ==","signatures":[{"sig":"MEUCIQCNsIk2E8WgTVqJrYTANW9q7gg8nAhKYnOsNMeuAqFe0QIgd0HSlLaPU8vmamXtC4ykVzeVuw/LnF1cDXD4F3T2Nps=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3922,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdczruCRA9TVsSAnZWagAAhYgP/A4TF9+2JiDvRJL9g/LN\nAAphZtZube+N3hLO3LwVwSBsideuzz9NsnNeI1ENI0g+spG8BHpU0o/bZ8zk\nTUE+bxdK3iHji0zFPRGSc3wecWcw8qnYNF+JJ3lS1Um6BkU2HgEYLTLn1t6v\nXUP4vcOzlSKr1k831d2fyQxdT7RV9xclxR4b6abRE3aROp4uFjpZCy4p/1ge\nG9P8SfZ4Wjy1V5LgZ9C0/5no0XTHYJZs4ZYhyMVQbBfj1UIISRARybz+WyOy\n9Pr250vhq8QjIlciju5QsL8noKfpdgbBJb7WQXe7Tfb1cApmXOSl0lijnk7d\nEys4sKow+Kyll2vqD9vUYtwWOZQQXnNzfNbu5w5zKEm11ArNsXOoZAVkwV5P\n5xcX1wKza5KNd6A6g+vldQHU1dBlfVMALe5BQOWAto5b20iXkxURNOBpAv9i\n9Nxt86lKKrGdsNuTdDhWDVg5/ZqA1gt1rm4UQIhgfK0dNuIjZyXw9o0CPh4D\nbbsHfMc2C4kJu0SYt0b7Q1gLvSn93TCUI5LUQZunCXz2gMS96xLqa7r3ODFq\nKw9zt5VgX3swF261X9rIn4z4BlkVECaTACdUUhhmkFSkUeVzLszH8OTKGGRV\nHAfLvpqgKTPknJe5pLu0u1f1rXM/ZjJz5XRmcu7sUXWqR/kHVMWD9xCI7gtv\nf2Vg\r\n=kfAc\r\n-----END PGP SIGNATURE-----\r\n","size":2079,"noattachment":false,"key":"/hexo-generator-index/-/hexo-generator-index-1.0.0.tgz"},"main":"index","engines":{"node":">=8.6.0"},"gitHead":"762375745b4301649a7c33b39ffcff02623b9e5e","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.10.2","description":"Index generator for Hexo.","directories":{"lib":"./lib"},"_nodeVersion":"12.10.0","dependencies":{"hexo-pagination":"1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","hexo":"^3.0.0","mocha":"^6.0.2","eslint":"^6.0.1","eslint-config-hexo":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-generator-index_1.0.0_1567832813992_0.9118854978076003","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":1567832814159,"_cnpm_publish_time":1567832814159,"dist-tags":{"latest":"4.0.0"}}